]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: continue linking if targeti is temporarily located in stray dir 53497/head
authorXiubo Li <xiubli@redhat.com>
Wed, 30 Aug 2023 05:24:01 +0000 (13:24 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 18 Sep 2023 02:20:48 +0000 (10:20 +0800)
commit76e442f147edab24a4cc3729a9470be169635efc
tree5cdaf3c80b7e06d875c527508165407411ec746a
parent1cafde22e208f93d1174cb71df5be19966e64004
mds: continue linking if targeti is temporarily located in stray dir

If one inode has more than one hardlink and after the primary dentry
is unlinked it will located the inode in the stray dir temporarily,
which is pending reintegration.

Just before the linkmerge/migrate is triggered a link request comes
it will fail with -EXDEV.

Just skip it and continue the linking.

Fixes: https://tracker.ceph.com/issues/56695
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 5b9df823a2ab333be6205b8add8fbae7c3d2cc17)
src/mds/Server.cc