]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: generate correct path for unlinked snapped files 59518/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 4 Jul 2024 02:02:30 +0000 (22:02 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 29 Aug 2024 20:23:56 +0000 (16:23 -0400)
commitb6d097b0e679328d812df85b24106c9c5f7dcabe
treefd4e9b96f85c503d28328af73de36a4edd9ba309
parent99ba78bb585d37a4eed21dba6174366fec59b5ff
mds: generate correct path for unlinked snapped files

A snapped unlinked directory is moved to the stray directory. Files in that
directory will not have correct stray_prior_path set because the snapshot was
naturally taken before the file is unlinked.

Use the parent directory's stray_prior_path for cephx path access controls.

Fixes: https://tracker.ceph.com/issues/66828
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 5ad0df3beedd1a74c5e1c30becc9048133773ff8)
src/mds/SessionMap.cc