[pve-devel] [PATCH pve-storage] Fix RBD resize with krbd option enabled.
Dmitry Petuhov
mityapetuhov at gmail.com
Mon Jan 16 08:45:09 CET 2017
With krbd we resize volume and tell QemuSever to notify running QEMU
with zero $size by returning undef.
Signed-off-by: Dmitry Petuhov <mityapetuhov at gmail.com>
---
This patch depends on
[PATCH qemu-server] Set zero $size and continue if volume_resize() returns false
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);
--
2.1.4
More information about the pve-devel
mailing list