> > >     I can handle it if there is a case where both fail, but is
> there a
> > > case where both can SUCCEED ?? 
> > 
> > What do you mean 'both succeed'?
> 
>     My understanding is that, on non-broken filesystems, calls to
> mkdir(2) either succeed by creating a new directory, or fail and return
> EEXIST (note: excluding all other types of errors :-))
> 
>     However, NFS seems to have issues, so the question is:  could both
> mkdir(2) calls actually succeed and claim to have created the same
> directory (even if it is?), or is one ALWAYS guaranteed to fail, as on
> a normal fs.

You're implying that you are making two calls to create the same
directory.  Am I correct?

The answer is 'maybe'?  Depends on the remote NFS server.  Matt or one
of the other NFS gurus may know more, but I wouldn't count on *anything*
over NFS.  If you need atomicity, you need lockd, which isn't
implemented on FreeBSD.


Nate

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to