On 05/03/2025 20:45, Frédéric Nass wrote:
Hi Florian,Point 1 is certainly a bug regarding the choice of terms in the response (confusion between file and directory).
Well... no, I don't think so. Rather, I'd guess it's simply a result of setfattr returning ENOTEMPTY (errno 39), which the shell then renders as "Directory not empty".
Perhaps setting the ceph.file.layout attribute on an empty file should really result in EPERM (errno 1) though. Or maybe even EFBIG (errno 27, "File too large), because the operation is only supported on a file that is 0 bytes in length, and fails on any file larger than that.
But, like I said, to avoid confusion I really do think that a setfattr command manipulating ceph.dir.layout on a non-empty *directory* ought to return ENOTEMPTY, which it currently does not.
Cheers, Florian
Attachment:
OpenPGP_0x4AAD18774C3CA127.asc
Description: OpenPGP public key
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ ceph-users mailing list -- ceph-users@xxxxxxx To unsubscribe send an email to ceph-users-leave@xxxxxxx