]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: make the lost+found dir accessible from clients
authorXiubo Li <xiubli@redhat.com>
Mon, 19 Apr 2021 02:34:02 +0000 (10:34 +0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 28 Jun 2021 19:12:32 +0000 (12:12 -0700)
commit0c03e18947c25857aacd2e3c21bb6dff25090aaf
tree3b7d3ce8b8e621898d7e2df812ac801ab27fac79
parent31f1c3348fbfeb99957ec14be6c13f8aad166c56
mds: make the lost+found dir accessible from clients

Inode number 0x4 is reserved for the lost+found dir, and the apps
or recovery apps need to access it.

At the same time the 0x3 is reserved for the global snaprealm, which
will also be lookup by the clients when looking up the snaprealm inodes.

Here will make all the inode less than 100 accessible by clients.

Fixes: https://tracker.ceph.com/issues/50216
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit 841071b3602aa2b8bcca57b95cdf671d48036a34)
src/client/Client.cc
src/mds/Server.cc
src/mds/mdstypes.h