Bug 7108 - --fake-super should be nestable
Summary: --fake-super should be nestable
Status: NEW
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.1.0
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on: 7095
Blocks:
  Show dependency treegraph
 
Reported: 2010-02-07 18:10 UTC by Matt McCutchen
Modified: 2010-02-07 18:10 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 Matt McCutchen 2010-02-07 18:10:52 UTC
The fake-super emulation layer should be nestable, i.e., rsync with --fake-super should be able to correctly backup and restore a tree that itself contains fake-super information.  For example, after the following commands, "file4" should have the same privileged attributes as "file":

rsync -aX -M--fake-super file file1
rsync -aX -M--fake-super file1 file2
rsync -aX --fake-super file2 file3
rsync -aX --fake-super file3 file4

One simple way to wrap a fake-super xattr for storing in another fake-super tree would be to add an extra "rsync." prefix.

Note that symlink munging, rsync's other feature that could be described as a emulation layer, is nestable.