]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: generate correct path for unlinked snapped files
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 4 Jul 2024 02:02:30 +0000 (22:02 -0400)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 4 Jul 2024 02:18:22 +0000 (22:18 -0400)
commit5ad0df3beedd1a74c5e1c30becc9048133773ff8
tree618b6a223d4c10b564db4aa3605385da9e42606f
parent61381768ba93f507694ef1758bd3e51b8b6b5ca0
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>
src/mds/SessionMap.cc