]> git.proxmox.com Git - pve-storage.git/commitdiff
rbd: don't attempt to update features of snapshots
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 29 Nov 2019 09:57:17 +0000 (10:57 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 29 Nov 2019 10:09:52 +0000 (11:09 +0100)
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>
PVE/Storage/RBDPlugin.pm

index eb1f9a068b2e77eea7af6827c9e8bbb681d585a9..10b54e5fd08e2867b90363c433a413c13684433a 100644 (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");