[MERGE] Support FTP servers with non-atomic rename (bug #89436)
Aaron Bentley
aaron.bentley at utoronto.ca
Mon Apr 16 16:46:46 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
This patch fixes the FTP transport so that it does not require atomic
rename for FTP servers. It uses osutils.fancy_rename to implement this.
It turns out that fancy_rename does not fail safe-- if it is impossible
to delete the original file, it would leave the filesystem in an
inconsistent state. So this patch fixes fancy_rename so that it
restores the original state on failure.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGI5pm0F+nu1YWqI0RAhESAJ424AFkOrhx2NqcU1esbeJkNXXYlACePqG8
6c8F59r/JPT4feOGofSLg5k=
=8pJh
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ftp-non-atomic-rename.patch
Type: text/x-patch
Size: 7227 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070416/41f2d9b7/attachment-0001.bin
More information about the bazaar
mailing list