Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Feb 2001 13:59:14 -0800
From:      Mike Smith <msmith@freebsd.org>
To:        Drew Eckhardt <drew@PoohSticks.ORG>
Cc:        Marc W <mwlist@lanfear.com>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Is mkdir guaranteed to be 'atomic' ?? 
Message-ID:  <200102262159.f1QLxES01872@mass.dis.org>
In-Reply-To: Your message of "Mon, 26 Feb 2001 14:47:50 MST." <200102262147.f1QLlon10675@chopper.Poohsticks.ORG> 

next in thread | previous in thread | raw e-mail | index | archive | help
> In message <200102262058.MAA39009@akira.lanfear.com>, mwlist@lanfear.com writes
> :
> >    is mkdir(3) guaranteed to be atomic?  
> 
> Yes.

Um.  mkdir(2) is atomic.  Note that mkdir(1) with the -p argument is 
*not* atomic.

> >Are there filesystem type cases where this might not be the case 
> >(NFS being my main concern ....)
> 
> No.

How would it *not* be atomic?


-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
           V I C T O R Y   N O T   V E N G E A N C E



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?200102262159.f1QLxES01872>