[pve-devel] [PATCH 28/44] sheepdog : volume_resize : parse_volname

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


Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
 PVE/Storage/SheepdogPlugin.pm |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/PVE/Storage/SheepdogPlugin.pm b/PVE/Storage/SheepdogPlugin.pm
index d9e46e7..649d49b 100644
--- a/PVE/Storage/SheepdogPlugin.pm
+++ b/PVE/Storage/SheepdogPlugin.pm
@@ -378,8 +378,11 @@ sub volume_size_info {
 sub volume_resize {
     my ($class, $scfg, $storeid, $volname, $size, $running) = @_;
 
-    my $cmd = &$collie_cmd($scfg, 'vdi', 'resize' , $volname, $size);
-    run_command($cmd, errmsg => "sheepdog resize $volname' error");
+    my ($vtype, $name, $vmid, $basename, $basevmid, $isBase) =
+	$class->parse_volname($volname);
+
+    my $cmd = &$collie_cmd($scfg, 'vdi', 'resize' , $name, $size);
+    run_command($cmd, errmsg => "sheepdog resize $name' error");
 
     return undef;
 }
-- 
1.7.10.4




More information about the pve-devel mailing list