nexenta: add volume_snapshot

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier
2012-09-06 10:27:55 +02:00
committed by Dietmar Maurer
parent 788dd8e182
commit 5223286c26

View File

@ -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;