[pve-devel] applied: [PATCH pve-storage] Fix RBD resize with krbd option enabled.

Wolfgang Bumiller w.bumiller at proxmox.com
Mon Jan 16 09:17:22 CET 2017


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 <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