]> git.proxmox.com Git - pve-storage.git/commitdiff
nexenta: add volume_snapshot_delete
authorAlexandre Derumier <aderumier@odiso.com>
Thu, 6 Sep 2012 08:28:09 +0000 (10:28 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 6 Sep 2012 08:37:36 +0000 (10:37 +0200)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/Storage/NexentaPlugin.pm

index 04fb09f598cce18f9d52b1cf3ed080180d1eb63b..230fbcbb5735e3f0a9cf1e5d022f0196e5fa25e6 100644 (file)
@@ -357,4 +357,11 @@ sub volume_snapshot_rollback {
     nexenta_add_lun_mapping_entry($volname, $scfg);
 }
 
+sub volume_snapshot_delete {
+    my ($class, $scfg, $storeid, $volname, $snap, $running) = @_;
+
+    my $json = '{"method": "destroy","object" : "snapshot","params": ["'.$scfg->{pool}.'/'.$volname.'@'.$snap.'"]}';
+    nexenta_request($scfg, $json);
+}
+
 1;