]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-fuse: add dedicated snap stag map for each directory
authorXiubo Li <xiubli@redhat.com>
Wed, 6 Apr 2022 00:12:26 +0000 (08:12 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 30 Aug 2022 02:38:18 +0000 (10:38 +0800)
commit415dfacbf7c063cf2a6058644c0fa2311e6045b8
tree777ad6ae2a7bab69ad0f0454888e23cdc3582da2
parentca7767c203e4056df35f92dc8aa85b04bbd07281
ceph-fuse: add dedicated snap stag map for each directory

This will fix the fino colliding bug, which is caused when the
snapid is later than 0xffff.

From mds 'mds_max_snaps_per_dir' option, we can see that the max
snapshots for each directory is 4_K, and in ceph-fuse we have
around 64_K, which is from 0xffff - 2, stags could be used to make
the fake fuse inode numbers for each directory.

Fixes: https://tracker.ceph.com/issues/54653
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 7e4424a821f1f0162cc1f2bfddb1eb501e321702)

 Conflicts:
src/client/fuse_ll.cc
src/client/fuse_ll.cc