rbd: volume_size_info : parse_volname
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
42d07b9ab3
commit
81d1d01774
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user