You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Extended attributes on a directory are refused: store them on the marker object #589
Split out of #167 by #567. #167 implemented extended attributes for files and was closed as completed. The directory half was never done, and README's contract table plus the refusal's own log line went on citing #167 for it.
Current behaviour
From internal/fuse/xattr.go:
setxattr on a directory: ENOTSUP
getxattr / removexattr: attribute missing (ENODATA on Linux, ENOATTR on macOS)
listxattr: succeeds with an empty list, so cp -a, rsync -X and ls -@ don't error on every directory
Why it's unimplemented
The same structural problem as directory chmod: a directory that exists only because objects share a prefix has no object to hold an attribute. Accepting the call would store the attribute for marker directories and drop it for prefix-only ones, depending on how the directory came to exist. setfattr reporting success while the next getfattr shows nothing is the defect the refusal prevents.
What implementing it would take
The marker-object design question is the same one as in #588 (directory chmod/chown), and the two should share one answer: either create a marker on first write, or refuse only for prefix-only directories. security.* and system.* stay refused on directories exactly as they are on files, since object metadata is writable by anyone with bucket write access.
Not urgent
The current behaviour is correct and documented. This is a capability gap, not a defect.
Activity
fix(docs): the Not-implemented table and its refusals cite open issue…