From d6a30aa2599da3b7cca673db8de2ecfa88fb969a Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Tue, 5 Feb 2013 12:56:08 +0100 Subject: [PATCH] nexenta : volume_resize : parse_volname Signed-off-by: Alexandre Derumier --- 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 a777c0d..f940ada 100644 --- a/PVE/Storage/NexentaPlugin.pm +++ b/PVE/Storage/NexentaPlugin.pm @@ -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 {