duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] Preventing access time modification?


From: Charles Duffy
Subject: Re: [Duplicity-talk] Preventing access time modification?
Date: Fri, 15 Jun 2007 10:31:41 -0500
User-agent: Thunderbird 2.0.0.0 (Windows/20070326)

Peter Schuller wrote:
One problem with changing it *back* is that you inherently introduce a
race condition with other processes. If we allow for applications
depending on atime in non-obvious ways, the potential consequences of
atime moving *backwards* as opposed to unnecessarily forward could
potentially be worse.

So do like rsync does: Create the file under a hidden, temporary name; change the time back; and then, when you're done, move it to its final name as an atomic operation.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]