From a4aee433807a089b7e2c42522fa6ef9ffbc6c255 Mon Sep 17 00:00:00 2001 From: Dmitry Petuhov Date: Mon, 16 Jan 2017 10:45:09 +0300 Subject: [PATCH] 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 --- PVE/Storage/RBDPlugin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm index 538a16a..0a31854 100644 --- a/PVE/Storage/RBDPlugin.pm +++ b/PVE/Storage/RBDPlugin.pm @@ -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);