Skip to content

Extended attributes on a directory are refused: store them on the marker object #589

Open

Description

@scttfrdmn

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

  1. added
    type: enhancement
    priority: low
    area: fuse
    area: metadata
    effort: medium
    on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: fusearea: metadataeffort: mediumpriority: lowtype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions