samba-bugs at samba.org
2011-Sep-22 22:59 UTC
[Bug 8478] New: Add an option to skip open files
https://bugzilla.samba.org/show_bug.cgi?id=8478 Summary: Add an option to skip open files Product: rsync Version: 3.0.8 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: devin.nate at cloudwerx.com QAContact: rsync-qa at samba.org Created attachment 6932 --> https://bugzilla.samba.org/attachment.cgi?id=6932 patch to skip open files Add an option to skip files that are open on the sender. use case is where syncing a directory with --remove-source-files and a prior patch I've written, for rename existing. It causes rsync to skip files on the sender that are open. Tested where cygwin/Windows is the sender. Not tested on other systems. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
https://bugzilla.samba.org/show_bug.cgi?id=8478 Devin Nate <devin.nate at cloudwerx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #6932|0 |1 is obsolete| | --- Comment #1 from Devin Nate <devin.nate at cloudwerx.com> 2011-09-26 23:15:26 UTC --- Created attachment 6950 --> https://bugzilla.samba.org/attachment.cgi?id=6950 second version of patch Second version of the patch. I should note this is a very cygwin specific patch, and designed as such. I'd be surprised if this is of any value on a Unix/Linux system. Nevertheless, it does what we need, and I've seen some google requests for it, so it is contributed back. I wouldn't expect it to hit mainline rsync. Basically, in cygwin, if a file is not-unlinkable, then a freshly created link() to that file is equally un-linkable. This patch sets up a directory (.rsync-tmp) and prior to processing any file creates a link(), then attempts an unlink(). If anything fails, it skips. Linux does not exhibit this behavior. Also, for extra safety, it performs a flock() to get an exclusive lock, then immediately unlocks. Thanks, Devin -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Seemingly Similar Threads
- [Bug 8367] New: Add a feature to --move-existing files
- [Bug 9948] New: Patch to provide progress display in log file
- [Bug 2711] New: Patch to add permitgwport and restrict permitopen to be a default deny
- OpenSSH contract development / patch
- [Bug 910] known_hosts port numbers