Bug 7108 - --fake-super should be nestable
--fake-super should be nestable
Status: NEW
Product: rsync
Classification: Unclassified
Component: core
All All
: P3 enhancement
: ---
Assigned To: Wayne Davison
Rsync QA Contact
Depends on: 7095
  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:


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.