Patch: Better handling for rsync temporary files

Brian K. White brian at aljex.com
Wed Oct 26 08:33:44 MDT 2011


On 10/26/2011 12:39 AM, Alex Jurkiewicz wrote:
> Any comments?
>
> On Thu, Oct 20, 2011 at 3:59 PM, Alex Jurkiewicz<alex at jurkiewi.cz>  wrote:
>> Hi all,
>> These two patches change how rsync handles temporary files on the receiver
>> side. The first patch adds a static token to rsync's temporary filenames.
>> The second patch ignores files with this token when using --cvs-ignore.
>> http://pastebin.com/DL1jCNfm
>> http://pastebin.com/yy9duP8Z
>> The behaviour I wanted to improve was the case where two rsyncs are
>> simultaneously reading and writing the same tree. In this scenario the
>> reader can end up reading the writer's temporary files (unless you use
>> --temp-dir) and copying them elsewhere.
>> A side effect of this change is the names of rsync's temporary files will be
>> "self-documenting" for users running `ls -la`.
>> I've tested this patch on Linux, but am reasonably unfamiliar with C so
>> feedback appreciated.
>> Cheers,
>> Alex

Only that it sounds good to me but I'm in no position for that to mean 
anything.

-- 
bkw


More information about the rsync mailing list