]> git.proxmox.com Git - pve-storage.git/commitdiff
fix bug #809: inheritance from ZFSPoolPlugin is not possible because we have to handl...
authorWolfgang Link <w.link@proxmox.com>
Thu, 5 Nov 2015 13:24:07 +0000 (14:24 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 6 Nov 2015 07:34:49 +0000 (08:34 +0100)
PVE/Storage/ZFSPlugin.pm

index df4c6d7d7a6e7ffaf40403aaf3a86a1fb603c003..00f727e8667583d3cd0dc7b2bdb23c30de6bea39 100644 (file)
@@ -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) = @_;