On Mon, Jan 16, 2017 at 10:45:09AM +0300, Dmitry Petuhov wrote: > With krbd we resize volume and tell QemuSever to notify running QEMU > with zero $size by returning undef. > > Signed-off-by: Dmitry Petuhov <mityapetu...@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
_______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel