Skip to content

Add lsattr/chattr support to --xattrs - #801

Closed
danielzgtg wants to merge 1 commit into
RsyncProject:masterfrom
danielzgtg:feat/lsattr
Closed

danielzgtg wants to merge 1 commit into
RsyncProject:masterfrom
danielzgtg:feat/lsattr

Conversation

@danielzgtg

Copy link
Copy Markdown

This is like bsdtar --fflags.

Repurposing sys_llistxattr allows cross-platform interoperability, such as for a transfer from Linux to Mac then from Mac to Linux. It's also simpler by not affecting the rest of the codebase.

There is no new cmdline option because #165 wants this to work with just -avX.

Closes: #165
Closes: #508

@arabek @Eucyon

@danielzgtg danielzgtg changed the title Add lsattr/chattr to --xattr Add lsattr/chattr support to --xattrs Aug 30, 2025
This is like `bsdtar --fflags`.

Repurposing `sys_llistxattr` allows cross-platform interoperability,
such as for a transfer from Linux to Mac then from Mac to Linux.
It's also simpler by not affecting the rest of the codebase.

There is no new cmdline option because RsyncProject#165 wants this to work with just `-avX`.

Closes: RsyncProject#165
Closes: RsyncProject#508
@steadytao

Copy link
Copy Markdown
Member

Closing this approach because it makes existing -X transfers set filesystem flags and repurposes an ordinary extended-attribute name. Preferring #894

@steadytao steadytao closed this Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: Sync file attributes (lsattr/chattr) rsync xattr not copying the +F flag (casefold)

2 participants