DO NOT REPLY [Bug 3461] rsync is not atomic when temp-dir is on
different device
bugzilla-daemon at dp3.samba.org
bugzilla-daemon at dp3.samba.org
Sun Jan 29 21:17:12 GMT 2006
https://bugzilla.samba.org/show_bug.cgi?id=3461
------- Comment #7 from wayned at samba.org 2006-01-29 14:17 MST -------
(In reply to comment #6)
> The traditional use of --temp-dir (I think) is for situations when the
> receiving partition does not have enough free space to accomodate a temporary
> copy of a large file.
Quite so. Even removing the destination file before doing a copy to a
temp-file name in the destination dir might duplicate the disk space if someone
had the destination file open.
A possible improvement for this option would be to set a minimum file-size that
should use the temp-dir setting. This way rsync could update smaller files
atomically, and only resort to using the temp-dir on another drive for really
large files.
Re: the patch in comment #5: it doesn't work for a space-conscious user that
has set an absolute --partial-dir path (such as using the same directory as the
--temp-dir setting), so the patch needs extra logic to ensure that the
copy-into-a-partial-dir logic only triggers for relative paths (which is a
simple, 1/2-line change).
FYI, I checked in some doc-improvments for the --temp-file option.
--
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.
More information about the rsync
mailing list