]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Wed, 15 Jun 2022 02:29:38 +0000 (10:29 +0800)
commit2349083a9d3f503dbe48fb1bdc3a88c881ed11a9
treee2728275b37dc5cc07956b160daf398b8b479af9
parent28d17ff81a93d5442d2107abbd51296ac822073a
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>
src/client/fuse_ll.cc