mds: make the lost+found dir accessible from clients#40903
mds: make the lost+found dir accessible from clients#40903batrick merged 3 commits intoceph:masterfrom
Conversation
7fa7cff to
deea37a
Compare
batrick
left a comment
There was a problem hiding this comment.
Great job trackign this down!
Xiubo, can you also add a trivial libcephfs test to lookup:
- root (0x1)
- lost+found (0x4) even if ENOENT
- .ceph (0x2)
jtlayton
left a comment
There was a problem hiding this comment.
Looks good. It kind of sucks that we have a mix of inodes in this range that are accessible via the client and some that aren't, but I think we're stuck with it.
Sure, I will add it. |
deea37a to
e77be2d
Compare
|
jenkins test make check |
e77be2d to
fb194b8
Compare
fb194b8 to
3030f16
Compare
|
Updated it by fixing the issue pointed out by Luis in kclient, the ino 0x3 will also be lookuped by clients too when checking the snamrealm inos. |
|
ACK |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
For inos 1 and 2 there has two places are defining them, to make sure we won't miss any one of them, let's define them in only one header file. Fixes: https://tracker.ceph.com/issues/50216 Signed-off-by: Xiubo Li <xiubli@redhat.com>
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>
Fixes: https://tracker.ceph.com/issues/50216 Signed-off-by: Xiubo Li <xiubli@redhat.com>
3030f16 to
0ec4d78
Compare
|
Rebased to upstream by fixing the conflicts in |
Inode number 0x4 is reserved for the lost+found dir, and the app
or test app need to access it.
Fixes: https://tracker.ceph.com/issues/50216
Signed-off-by: Xiubo Li xiubli@redhat.com
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox