[pve-devel] applied: [PATCH storage] krbd_feature_disable was not setting features

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Sep 12 15:03:03 CEST 2018


On 9/12/18 2:49 PM, Alwin Antreich wrote:
> this broke creation and migration of disks on rbd storages
> 
> Signed-off-by: Alwin Antreich <a.antreich at proxmox.com>
> ---
>  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 84b1abd..ee373d6 100644
> --- a/PVE/Storage/RBDPlugin.pm
> +++ b/PVE/Storage/RBDPlugin.pm
> @@ -82,7 +82,7 @@ my $krbd_feature_disable = sub {
>      my $krbd_feature_blacklist = ['deep-flatten', 'fast-diff', 'object-map', 'exclusive-lock'];
>      my (undef, undef, undef, undef, $features) = rbd_volume_info($scfg, $storeid, $name);
>  
> -    my $active_features = { map { $_ => 1 } $features };
> +    my $active_features = { map { $_ => 1 } @$features };
>      my $incompatible_features = join(',', grep { %$active_features{$_} } @$krbd_feature_blacklist);
>  
>      if ($incompatible_features) {
> 

applied, thanks!




More information about the pve-devel mailing list