[pve-devel] [PATCH 09/16] rbd: volume_size_info : parse_volname

Alexandre Derumier aderumier at odiso.com
Sun Feb 3 09:49:36 CET 2013


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

diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm
index 8bcdb59..ab1fde6 100644
--- a/PVE/Storage/RBDPlugin.pm
+++ b/PVE/Storage/RBDPlugin.pm
@@ -422,7 +422,8 @@ sub deactivate_volume {
 sub volume_size_info {
     my ($class, $scfg, $storeid, $volname, $timeout) = @_;
 
-    my ($size, undef) = rbd_volume_info($scfg, $storeid, $volname);
+    my ($vtype, $name, $vmid) = $class->parse_volname($volname);
+    my ($size, undef) = rbd_volume_info($scfg, $storeid, $name);
     return $size;
 }
 
-- 
1.7.10.4




More information about the pve-devel mailing list