samba-bugs@samba.org
2006-Apr-24 17:11 UTC
DO NOT REPLY [Bug 3719] New: Improved "--update" logic
https://bugzilla.samba.org/show_bug.cgi?id=3719 Summary: Improved "--update" logic Product: rsync Version: 2.6.5 Platform: Sparc OS/Version: Solaris Status: NEW Severity: major Priority: P3 Component: core AssignedTo: wayned@samba.org ReportedBy: yair.lenga@citigroup.com QAContact: rsync-qa@samba.org I'm using rsync to update a "semi-live" repository of files, where users may update either the master or the backup repository. I'm using '--update' to make sure that old files do not overwrite newer files. In the current code, the timestamp is capture and compared at the beginning of the transfer. At this point, a decision is made if the update will be performed. This implementation create a window where a file on the recieving side can be updated, and then overwritten by a file from the backup repository. Suggested fix will be to add an extra check for the timestamp of the destination file, before renaming the temporary file into the final name. With this check, the window where newer files can be written will be reduced to few milliseconds - much better then the current window - few seconds - depending on file size, communication gap, etc. The cost for the extra 'stat' is minor (compared with the overall cost of getting the update). -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs@samba.org
2006-Apr-24 19:06 UTC
DO NOT REPLY [Bug 3719] Improved "--update" logic
https://bugzilla.samba.org/show_bug.cgi?id=3719 wayned@samba.org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|major |enhancement Status|NEW |ASSIGNED Version|2.6.5 |2.6.8 ------- Comment #1 from wayned@samba.org 2006-04-24 14:05 MST ------- I'll consider this. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
Possibly Parallel Threads
- DO NOT REPLY [Bug 3479] New: Request: timestamps in --log-format
- DO NOT REPLY [Bug 3718] New: RSync should verify permission/time before commiting a change
- Implemented "--exclude-old" in rsync
- DO NOT REPLY [Bug 3778] New: rsync triggers ( pre/post xter scripts )
- DO NOT REPLY [Bug 3846] New: rsync silently transfers blocks of zero bytes on read errors