Fix RBD resize with krbd option enabled.
With krbd we resize volume and tell QemuSever to notify running QEMU with zero $size by returning undef. Signed-off-by: Dmitry Petuhov <mityapetuhov@gmail.com>
This commit is contained in:
committed by
Wolfgang Bumiller
parent
3ae8ac7861
commit
a4aee43380
@ -604,7 +604,7 @@ sub volume_size_info {
|
||||
sub volume_resize {
|
||||
my ($class, $scfg, $storeid, $volname, $size, $running) = @_;
|
||||
|
||||
return 1 if $running;
|
||||
return 1 if $running && !$scfg->{krbd};
|
||||
|
||||
my ($vtype, $name, $vmid) = $class->parse_volname($volname);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user