5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2025-02-10 13:57:38 +03:00

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:
Dmitry Petuhov 2017-01-16 10:45:09 +03:00 committed by Wolfgang Bumiller
parent 3ae8ac7861
commit a4aee43380

View File

@ -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);