]> git.apps.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, 23 Aug 2022 05:42:23 +0000 (13:42 +0800)
commite1d70bf242e2223b858e509e64df8d547c050dea
tree7135271c93149c1f58a6c074b231b4b78423766e
parenta8d96672fd1574bddb27ac8d529785d1b284ae9c
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)
src/client/fuse_ll.cc