]> 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, 30 Aug 2022 02:38:18 +0000 (10:38 +0800)
commitfa9e3426553e9ef9d7d197a69b1c9be57bf0aac6
tree14e1f28f9f5553f7cc37c2abfe20d60bbcc67dfb
parentfa3ef523844824ec8c924a610f53fae2091de39d
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