[pve-devel] [PATCH pve-storage] fix bug #809: inheritance from ZFSPoolPlugin is not possible because we have to handle there subvols too.

Wolfgang Link w.link at proxmox.com
Thu Nov 5 14:24:07 CET 2015


---
 PVE/Storage/ZFSPlugin.pm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/PVE/Storage/ZFSPlugin.pm b/PVE/Storage/ZFSPlugin.pm
index df4c6d7..00f727e 100644
--- a/PVE/Storage/ZFSPlugin.pm
+++ b/PVE/Storage/ZFSPlugin.pm
@@ -312,6 +312,12 @@ sub volume_resize {
     return $new_size;
 }
 
+sub volume_snapshot_delete {
+    my ($class, $scfg, $storeid, $volname, $snap, $running) = @_;
+
+    $class->zfs_request($scfg, undef, 'destroy', "$scfg->{pool}/$volname\@$snap");
+}
+
 sub volume_snapshot_rollback {
     my ($class, $scfg, $storeid, $volname, $snap) = @_;
 
-- 
2.1.4





More information about the pve-devel mailing list