]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: generate correct path for unlinked snapped files 59519/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:24:20 +0000 (16:24 -0400)
commiteecfef02fcdbf5414fde4e72a71fdcd723145d48
tree0f8d4319beb6e5336388e0befde2eb17a28bda06
parent1934b1a5fdac40ec5941dd29a1da912726971f9f
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