How to safely maintain a status file

Dan Stromberg drsalists at gmail.com
Mon Jul 9 17:34:50 EDT 2012


On Mon, Jul 9, 2012 at 8:24 PM, John Nagle <nagle at animats.com> wrote:

> On 7/8/2012 2:52 PM, Christian Heimes wrote:
>
>> You are contradicting yourself. Either the OS is providing a fully
>> atomic rename or it doesn't. All POSIX compatible OS provide an atomic
>> rename functionality that renames the file atomically or fails without
>> loosing the target side. On POSIX OS it doesn't matter if the target
>> exists.
>>
>
>     Rename on some file system types (particularly NFS) may not be atomic.
>

Actually, ISTR that rename() is one of the few things on NFS that is
atomic.

http://bugs.python.org/issue8828
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120709/8737c8be/attachment.html>


More information about the Python-list mailing list