Bug #4220
closedMDS is inconsistent about whether layouts are allowed on the root directory
0%
Description
I can't seem to set layouts on the root directory with ceph-fuse. Perhaps I'm doing something else wrong, but check out what.
Updated by Greg Farnum about 11 years ago
- Subject changed from can't set layouts on root directory? to MDS is inconsistent about whether layouts are allowed on the root directory
- Assignee changed from Greg Farnum to Sage Weil
- Priority changed from High to Normal
If you go through the "handle_client_setdirlayout" interface (ie, cephfs tool), the MDS will let you set a layout on the root directory. If you go through the "handle_client_setxattr" virtual xattr interface, it won't. There's a special-case check disallowing it and returning EINVAL "//for now".
My suspicion is that we can just unlock this, but perhaps Sage had a reason to think otherwise, in which case we should disallow it through all interfaces.
Updated by Greg Farnum about 11 years ago
- Status changed from New to Resolved
- Assignee changed from Sage Weil to Greg Farnum
Right, this is in the generic xattr code, not the new vxattr stuff. Sage says this is because the root inode used to be a construct which was never persisted to disk — but it has been for many years now. So we're just getting rid of that check.
Done in commit:9f82ae60fac30391dfa9d17d2fc014bf9e21f387