Once upon a time, Neal D. Becker <ndbecker2(a)verizon.net> said:
Are you sure? What if you:
1) duplicate the directory (using hardlinks to files)
2) atomic rename directory
You can't do step #2. You can only rename over an existing directory if
the directory is already empty.
The only way you can do something like what you say is if you create the
directories under a different name and use symlinks to point to them
(you can replace a symlink atomically by creating a new symlink under a
new name and then renaming the symlink over the old one).
If you go that way, you have to have a clean-up program. Otherwise,
unclean shutdowns (either of the management program(s) or of the system)
will leave stuff all over the place. You could use a log to make the
clean-up faster, and rotate the log out when it is processed (i.e. along
the lines of db_checkpoint and db_archive from BDB).
Chris Adams <cmadams(a)hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.