[pve-devel] [PATCH 5/7] nexenta: add volume_snapshot
Alexandre Derumier
aderumier at odiso.com
Wed Sep 5 10:08:54 CEST 2012
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/Storage/NexentaPlugin.pm | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/PVE/Storage/NexentaPlugin.pm b/PVE/Storage/NexentaPlugin.pm
index b1a3516..ef45a26 100644
--- a/PVE/Storage/NexentaPlugin.pm
+++ b/PVE/Storage/NexentaPlugin.pm
@@ -336,4 +336,12 @@ sub volume_resize {
return undef;
}
+sub volume_snapshot {
+ my ($class, $scfg, $storeid, $volname, $snap, $running) = @_;
+
+ my $json = '{"method": "create_snapshot","object" : "zvol","params": ["'.$scfg->{pool}.'/'.$volname.'", $snap]}';
+ nexenta_request($scfg, $json);
+ return undef;
+}
+
1;
--
1.7.2.5
More information about the pve-devel
mailing list