[pve-devel] [PATCH 10/44] rbd: volume_size_info : parse_volname
Alexandre Derumier
aderumier at odiso.com
Tue Feb 5 12:55:37 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