Bug 7095 - -X without --fake-super should copy rsync internal xattrs
Summary: -X without --fake-super should copy rsync internal xattrs
Status: REOPENED
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.0.7
Hardware: PPC Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks: 7108
  Show dependency treegraph
 
Reported: 2010-02-03 12:10 UTC by Jörg Sommer (mail address dead)
Modified: 2010-02-07 18:03 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jörg Sommer (mail address dead) 2010-02-03 12:10:28 UTC
Hi,

% 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.

Bye, Jörg.
Comment 1 Wayne Davison 2010-02-06 15:34:14 UTC
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.
Comment 2 Matt McCutchen 2010-02-07 18:03:46 UTC
(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?