]> git.proxmox.com Git - pve-storage.git/commitdiff
nexenta : volume_resize : parse_volname
authorAlexandre Derumier <aderumier@odiso.com>
Tue, 5 Feb 2013 11:56:08 +0000 (12:56 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 14 Feb 2013 09:33:58 +0000 (10:33 +0100)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/Storage/NexentaPlugin.pm

index a777c0d6239c65f8500e0e673c59d79de3412be1..f940ada8defdadba5f09f2f999e04788723dff75 100644 (file)
@@ -440,7 +440,9 @@ sub volume_size_info {
 sub volume_resize {
     my ($class, $scfg, $storeid, $volname, $size, $running) = @_;
 
-    nexenta_request($scfg, 'set_child_prop', 'zvol', "$scfg->{pool}/$volname", 'volsize', ($size/1024) . 'KB');
+    my ($vtype, $name, $vmid) = $class->parse_volname($volname);
+
+    nexenta_request($scfg, 'set_child_prop', 'zvol', "$scfg->{pool}/$name", 'volsize', ($size/1024) . 'KB');
 }
 
 sub volume_snapshot {