View Issue Details

IDProjectCategoryView StatusLast Update
0000512RsyncBugpublic2012-01-11 19:02
ReporterLewisR Assigned ToSteven Levine  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
Summary0000512: When creating new files/directories, rsync 3.0.8 adds libc EAs automatically
DescriptionRunning locally, using --xattrs or --no-xattrs, rsync-3.0.8-20111230-shl adds default (124 bytes) libc EAs to newly created directories, even when none exist on the source. Running remotely, rsync creates files and directories with default libc EAs, even when none exist on the source.
Steps To Reproduce1. Create ./noeas directory.
2. Create new text file (copy con ...) in ./noeas directory. Save file. Ensure no EAs are attached.
3. Create /backup1 directory.
4. Run rsync.exe -r -v --no-xattrs -i ./noeas/ /backup1/backup2

Result: New file is backed up to /backup1/backup2. backup2 is created with 124 bytes of libc EAs.

1. Local machine: Create ./noeas directory.
2. Local machine: Create new text file (copy con ...) in ./noeas directory. Save file. Ensure no EAs are attached.
3. Remote machine: Create /backup directory & add module to rsyncd.conf as [backup].
4. Remote machine: Start rsync.exe --daemon --config=rsyncd.conf.
5. Local machine: Run rsync.exe -r -v --no-xattrs -i ./noeas/ remote::backup/.

Result: New file (copy) is created in /backup with 124 bytes of default libc EAs.

Additional InformationWhile I was able to reproduce the above two scenarios, I have not been able to reproduce the condition described in issue 0000495 where locally backup up files without EAs are created with 124 bytes of EAs on them when --xattrs is specified. I am guessing that a previous build of rsync did that.

N.B.: Need to add 3.0.8 to the product version dropdown list for this project.
TagsNo tags attached.

Relationships

related to 0000514 closedSteven Levine When creating new directories, rsync 3.0.8 sometimes adds libc EAs automatically 

Activities

Steven Levine

2012-01-10 21:38

manager   ~0002165

Rsync is working as designed. When run with --no-xattrs, which is the default, rsync does not touch the EAs in any way. However, since rsync is a libc app, the default libc EAs processing will apply and it will create the private EAs. If you don't want them, you need to use --xattrs so that rsync overrides libc's default logic.

In the future you will be able to use LIBC_UNIX_EAS to turn off the default libc EA logic.

LewisR

2012-01-11 01:19

developer   ~0002168

This makes sense now; thanks. We should close this bug as INVALID, as it's not an rsync-specific thing.

Steven Levine

2012-01-11 19:02

manager   ~0002173

Working as expected, except for newly created directories which do not always get fully sync'ed EAs. See 0000514

Issue History

Date Modified Username Field Change
2012-01-10 17:37 LewisR New Issue
2012-01-10 21:38 Steven Levine Note Added: 0002165
2012-01-10 21:55 Steven Levine Assigned To => Steven Levine
2012-01-10 21:55 Steven Levine Status new => assigned
2012-01-11 01:19 LewisR Note Added: 0002168
2012-01-11 18:24 Steven Levine Issue cloned: 0000514
2012-01-11 18:25 Steven Levine Relationship added related to 0000514
2012-01-11 19:02 Steven Levine Note Added: 0002173
2012-01-11 19:02 Steven Levine Status assigned => closed
2012-01-11 19:02 Steven Levine Resolution open => no change required