The Samba-Bugzilla – Bug 7095
-X without --fake-super should copy rsync internal xattrs
Last modified: 2010-02-07 18:03:46 UTC
% touch src
% setfattr -n 'user.rsync.%stat' -v '40755 0,0 0:0' src
% getfattr -d src
# file: src
user.rsync.%stat="40755 0,0 0:0"
% rsync -aHAX src dst
% getfattr -d dst
Even if I've used the option -X, rsync didn't sync the extended attribute of the file.
You cite a fake-super attribute, which rsync does not consider to be a real xattr (since it was not present in the original copy). Either do another fake-super copy, or use -XX, which includes even internal extended attributes.
Sadly, the manpage fails to mention the use of -XX, which I just fixed in the git repo.
(In reply to comment #1)
> You cite a fake-super attribute, which rsync does not consider to be a real
> xattr (since it was not present in the original copy).
I don't accept this reasoning. When --fake-super is off, I do not expect rsync to display any awareness of the special xattr names used by its fake-super mode. Is there any case in which it is useful for rsync to drop those xattrs?