gnu-arch-users
[Top][All Lists]
Advanced

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

Re: [Gnu-arch-users] [Question] how to preserve multiple file's atomicit


From: Aaron Bentley
Subject: Re: [Gnu-arch-users] [Question] how to preserve multiple file's atomicity ?
Date: Mon, 22 Nov 2004 09:51:44 -0500
User-agent: Mozilla Thunderbird 0.5 (X11/20040309)



Tez Kamihira wrote:
On Mon, 22 Nov 2004 09:35:19 -0500, Aaron Bentley <address@hidden> said:

Andrew Suffield wrote:

Arch archives are *strictly* write-once. They can be stored on
write-once media in real time. No file may be opened for writing
except when it is being created.

I know what you mean, but that's not literally true. .listing files may be modified when cacherevs are added or removed.



and... how about my original question...? :-(

I am not aware of any technique that permits you to modify two files atomically in a POSIX filesystem. You might be able to achive the effect you want by making a hard-linked copy of the directory (and all children), altering the files, and using rename (2) to replace the old directory with the new one.

Aaron

--
Aaron Bentley
Director of Technology
Panometrics, Inc.




reply via email to

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