Patch: Better handling for rsync temporary files

Kevin Korb kmk at sanitarium.net
Wed Oct 26 21:29:31 MDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Suddenly I feel compelled to point out the existence of --temp-dir

On 10/26/11 22:52, Alex Jurkiewicz wrote:
> On Thu, Oct 27, 2011 at 5:30 AM, Wayne Davison <wayned at samba.org> 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

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
	Kevin Korb			Phone:    (407) 252-6853
	Systems Administrator		Internet:
	FutureQuest, Inc.		Kevin at FutureQuest.net  (work)
	Orlando, Florida		kmk at sanitarium.net (personal)
	Web page:			http://www.sanitarium.net/
	PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk6o0BsACgkQVKC1jlbQAQewyQCglR8yu95Up0PL4m8rSh40fkFz
Z1kAoPMPzCQNnDY/cE1sl+Cv1fOOYAX/
=YoUj
-----END PGP SIGNATURE-----


More information about the rsync mailing list