]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-fuse: reserve stag number 1 for snapdirs
authorXiubo Li <xiubli@redhat.com>
Wed, 23 Mar 2022 06:30:07 +0000 (14:30 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 23 Aug 2022 05:42:23 +0000 (13:42 +0800)
commit23b63313ede367bd44295f9f81b9cd459eead527
treec038aaddd9d3988a92e28f9748ab4d1b84b925d7
parent61fbc9a273af9d7ef91056e0f4fcc2a09e5cd559
ceph-fuse: reserve stag number 1 for snapdirs

There have two stags will be reserved, 0 for CEPH_NOSNAP and 1 for
CPEH_SNAPDIR.

This will always make sure that for the nonsnap and snapdir inode
numbers to be consistent for all the ceph-fuse mounts.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 2349083a9d3f503dbe48fb1bdc3a88c881ed11a9)
src/client/fuse_ll.cc