From 5223286c26ea1713131802d1dc73df9c4f0b2b28 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Thu, 6 Sep 2012 10:27:55 +0200 Subject: [PATCH] nexenta: add volume_snapshot Signed-off-by: Alexandre Derumier --- PVE/Storage/NexentaPlugin.pm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PVE/Storage/NexentaPlugin.pm b/PVE/Storage/NexentaPlugin.pm index b1a3516..af2c4c6 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;