Date: Mon, 26 Feb 2001 14:02:09 -0800 (PST) From: Marc W <mwlist@lanfear.com> To: <owner-freebsd-hackers@FreeBSD.ORG>, Marc W <mwlist@lanfear.com> Cc: <nate@yogotech.com>, Drew Eckhardt <drew@PoohSticks.ORG>, freebsd-hackers@FreeBSD.ORG Subject: Re: Is mkdir guaranteed to be 'atomic' ?? Message-ID: <200102262202.OAA39275@akira.lanfear.com>
next in thread | raw e-mail | index | archive | help
> > > > 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. marc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102262202.OAA39275>