samba-bugs at samba.org
2011-Oct-07 19:03 UTC
[Bug 8513] New: files from local filesystem on source written to different filesystem on dest despite --one-file-system
https://bugzilla.samba.org/show_bug.cgi?id=8513 Summary: files from local filesystem on source written to different filesystem on dest despite --one-file-system Product: rsync Version: 3.1.0 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: terry_n_brown at yahoo.com QAContact: rsync-qa at samba.org doing something like rsync -e "ssh -p $PORT" \ --ignore-errors \ --only-write-batch=$STORAGE/$TS""_$NAME.rsb \ --archive \ --one-file-system \ --verbose \ --progress \ --delete \ $SOURCE/ \ $TARGET:$SOURCE/ On the source, due to historical accident, there are *local* files like .../cifs/data1/cdrive/autoexec.bat .../cifs/data1/cdrive/http/setup.ini and on dest. .../cifs/data1/cdrive is a windows share on another filesystem / machine, but the --read-batch version of the above, even with --one-file-system flag, files on the other filesystem are still overwritten. Seems --one-file-system should never cross file system boundaries. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2011-Oct-08 16:38 UTC
[Bug 8513] files from local filesystem on source written to different filesystem on dest despite --one-file-system
https://bugzilla.samba.org/show_bug.cgi?id=8513 Wayne Davison <wayned at samba.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #1 from Wayne Davison <wayned at samba.org> 2011-10-08 16:38:15 UTC --- That's not what --one-filesystem limits. The man page explains it fairly well: This tells rsync to avoid crossing a filesystem boundary when recursing. This does not limit the user?s ability to specify items to copy from multiple filesystems, just rsync?s recursion through the hierarchy of each directory that the user specified, and also the analogous recursion on the receiving side during deletion. So, no limit is place on files that make it into the transfer -- they get transferred. While it would be possible to add a destination check to see if a particular existing file is on a different filesystem from the starting one, that is not something that I plan to add. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.