Re: atomic renames on freebsd w/ softupdates, was Re: djblinux?

Dan Kegel <[email protected]> Fri, 27 Jun 2003 11:46:18 -0700
Newsgroups gmane.comp.djb.package
Message-ID <[email protected]>
Paul Jarc wrote:
> Dan Kegel <[email protected]> wrote:
> 
>>This brings up the question -- does the Posixtest project's
>>testsuite verify that atomic rename works?
> 
> 
> The question, I think, is not about atomicity, but whether directory
> updates are synchronous.  The only way you'd find that they weren't
> synchronous is if the system crashed just after a rename() (or link(),
> etc.) and the change was lost.

I wonder if SuSv3 even deals with that kind of issue.  I bet not,
so it's out of posixtest's purview.  It's not out of LTP's purview,
though.  It's tempting to use a virtual machine as part of
a regression test, and simulate a crash and recovery...
it'd be a good test of ext3's crash recovery.

- Dan