[pve-devel] [PATCH 41/44] nexenta : volume_resize : parse_volname

Alexandre Derumier aderumier at odiso.com
Tue Feb 5 12:56:08 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 3071eb2..b9f2387 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 {
-- 
1.7.10.4




More information about the pve-devel mailing list