[pve-devel] [PATCH 42/44] nexenta : volume_snapshot : parse_volname
Alexandre Derumier
aderumier at odiso.com
Tue Feb 5 12:56:09 CET 2013
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
PVE/Storage/NexentaPlugin.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/PVE/Storage/NexentaPlugin.pm b/PVE/Storage/NexentaPlugin.pm
index b9f2387..3b51e4d 100644
--- a/PVE/Storage/NexentaPlugin.pm
+++ b/PVE/Storage/NexentaPlugin.pm
@@ -448,7 +448,9 @@ sub volume_resize {
sub volume_snapshot {
my ($class, $scfg, $storeid, $volname, $snap, $running) = @_;
- nexenta_request($scfg, 'create_snapshot', 'zvol', "$scfg->{pool}/$volname", $snap, '');
+ my ($vtype, $name, $vmid) = $class->parse_volname($volname);
+
+ nexenta_request($scfg, 'create_snapshot', 'zvol', "$scfg->{pool}/$name", $snap, '');
}
sub volume_snapshot_rollback {
--
1.7.10.4
More information about the pve-devel
mailing list