rbd: volume_size_info : parse_volname

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier
2013-02-05 12:55:37 +01:00
committed by Dietmar Maurer
parent 42d07b9ab3
commit 81d1d01774

View File

@ -415,7 +415,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;
}