On Tue, Nov 22, 2005 at 11:09:24PM +0100, Pascal Bleser wrote: > Or maybe you have a better idea how to solve this consistently, which > wouldn't be the first time :)
There is a solution for this: 1. Make a hard linked copy (cp -al) of the current version to a temporary directory that is not accessible from the outside. 2. Run your scripts/whatever on the copy. 3. Do an almost atomic replacement my moving away the old version to a temporary directory and instead moving the new version to the public place. --- This is almost atomic because moving two directories within one file system this way only involves four directory entry changes. 4. Remove the old version. The only point in time where an inconsistent state is visible from the outside here is the few milliseconds between both moves mentioned in 3. Robert -- Robert Schiele Tel.: +49-621-181-2214 Dipl.-Wirtsch.informatiker mailto:[EMAIL PROTECTED]
pgpx9S1SPauzh.pgp
Description: PGP signature
