]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-fuse: add dedicated snap stag map for each directory 45614/head
authorXiubo Li <xiubli@redhat.com>
Wed, 6 Apr 2022 00:12:26 +0000 (08:12 +0800)
committerXiubo Li <xiubli@redhat.com>
Wed, 15 Jun 2022 02:29:38 +0000 (10:29 +0800)
commit7e4424a821f1f0162cc1f2bfddb1eb501e321702
tree493703d8f9917dec8045a1edfff9b04345b99717
parenta6e83d8dece53d11d0753f4843a6235eb1bb9834
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>
src/client/fuse_ll.cc