rbd: don't attempt to update features of snapshots

it does not work:

disable RBD image features this kernel RBD drivers is not compatible with: fast-diff,object-map,deep-flatten
clone failed: could not disable krbd-incompatible image features 'fast-diff,object-map,deep-flatten' for rbd image: vm-123123123-disk-0@test: rbd: snapshot name specified for a command that doesn't use it

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2019-11-29 10:57:17 +01:00
committed by Thomas Lamprecht
parent eb98e68611
commit b4227e776f

View File

@ -589,7 +589,7 @@ sub map_volume {
return $kerneldev if -b $kerneldev; # already mapped
$krbd_feature_update->($scfg, $storeid, $name);
$krbd_feature_update->($scfg, $storeid, $name) if !$snapname;
my $cmd = &$rbd_cmd($scfg, $storeid, 'map', $name);
run_rbd_command($cmd, errmsg => "can't map rbd volume $name");