From e9565df58e2b364f3fc6c7ebfc45c7b868141ab6 Mon Sep 17 00:00:00 2001 From: Wolfgang Link Date: Fri, 23 Jan 2015 10:32:39 +0100 Subject: [PATCH] zfsdir: implement free_image Signed-off-by: Wolfgang Link --- PVE/Storage/ZFSDirPlugin.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/PVE/Storage/ZFSDirPlugin.pm b/PVE/Storage/ZFSDirPlugin.pm index 08c29c4..84ffe39 100644 --- a/PVE/Storage/ZFSDirPlugin.pm +++ b/PVE/Storage/ZFSDirPlugin.pm @@ -174,6 +174,16 @@ sub alloc_image { return $name; } +sub free_image { + my ($class, $storeid, $scfg, $volname, $isBase) = @_; + + my (undef, $name, undef) = $class->parse_volname($volname); + + $class->zfs_delete_zvol($scfg, $name); + + return undef; +} + sub zfs_get_pool_stats { my ($class, $scfg) = @_; -- 2.39.2