opensubscriber
   Find in this group all groups
 
Unknown more information…

r : rsync@lists.samba.org 27 October 2011 • 10:52AM -0400

Re: Patch: Better handling for rsync temporary files
by Alex Jurkiewicz

REPLY TO AUTHOR
 
REPLY TO GROUP




On Thu, Oct 27, 2011 at 5:30 AM, Wayne Davison <wayned@samb...> wrote:
> Here's a patch that should handle the above idea:
>  http://pastebin.com/UTbtFu8Ta

Unknown Paste ID!

Regardless, all your suggested changes still improve the capability of
rsync to run simultaneously on the same tree, so it sounds good. My
one niggle is that always keeping the token in the temporary filename
without any special-case truncation would allow users to have stronger
guarantees about excluding these files.

How about rsync trims just the original filename portion, and if it
reaches zero characters and even '.XXXXXX.rsynctmp' doesn't fit, error
out. If we want to keep going, rsync could try fewer X's down to zero
and eventually try the 9 char '.rsynctmp' filename.

(Well, one problem with the above is the exclude pattern would have to
be .*rsynctmp, so you could give up at the 11 char '.A.rsynctmp'
instead.)

Alex
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.