]> git.proxmox.com Git - pve-storage.git/commitdiff
rbd: krbd_feature_disable was not disabling features
authorAlwin Antreich <a.antreich@proxmox.com>
Wed, 12 Sep 2018 12:49:28 +0000 (14:49 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 12 Sep 2018 12:56:36 +0000 (14:56 +0200)
$features is actually an array reference, so use it as one.
This broke creation and migration of disks on rbd storages

Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/Storage/RBDPlugin.pm

index 84b1abd892e5e3a9e70b97b5c8b742c6294acacb..ee373d68f96316490fa7ee5880578ce531483941 100644 (file)
@@ -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) {