Richard Sharpe wrote:
> In looking at vn_open, I see that it calls namei and then a little while
> later calls VOP_CREATE.
> 
> If the user did open(..., ... O_CREAT | O_EXCL, ...), what prevents a race
> where one process discovers that the name doesn't already exist but
> another gets in and creates the name?

The directory vnode is locked over the create operation.

-- Terry

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

Reply via email to