[pve-devel] [PATCH 19/21] nexenta: add volume_snapshot_delete

Alexandre Derumier aderumier at odiso.com
Thu Sep 6 10:28:09 CEST 2012


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/Storage/NexentaPlugin.pm |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/PVE/Storage/NexentaPlugin.pm b/PVE/Storage/NexentaPlugin.pm
index 04fb09f..230fbcb 100644
--- a/PVE/Storage/NexentaPlugin.pm
+++ b/PVE/Storage/NexentaPlugin.pm
@@ -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;
-- 
1.7.2.5




More information about the pve-devel mailing list