[pve-devel] [PATCH 11/44] rbd: volume_resize : parse_volname

Alexandre Derumier aderumier at odiso.com
Tue Feb 5 12:55:38 CET 2013


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/Storage/RBDPlugin.pm |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm
index ab1fde6..8020864 100644
--- a/PVE/Storage/RBDPlugin.pm
+++ b/PVE/Storage/RBDPlugin.pm
@@ -432,7 +432,9 @@ sub volume_resize {
 
     return 1 if $running;
 
-    my $cmd = &$rbd_cmd($scfg, $storeid, 'resize', '--size', ($size/1024/1024), $volname);
+    my ($vtype, $name, $vmid) = $class->parse_volname($volname);
+
+    my $cmd = &$rbd_cmd($scfg, $storeid, 'resize', '--size', ($size/1024/1024), $name);
     run_command($cmd, errmsg => "rbd resize $volname' error", errfunc => sub {});
     return undef;
 }
-- 
1.7.10.4




More information about the pve-devel mailing list