From owner-freebsd-hackers Fri Jan 10 14:10:24 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88D6B37B401 for ; Fri, 10 Jan 2003 14:10:23 -0800 (PST) Received: from ns.aus.com (adsl-66-127-240-173.dsl.sntc01.pacbell.net [66.127.240.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82B6F43EB2 for ; Fri, 10 Jan 2003 14:10:10 -0800 (PST) (envelope-from rsharpe@richardsharpe.com) Received: from localhost (rsharpe@localhost) by ns.aus.com (8.11.6/8.11.6) with ESMTP id h0AMf7c03725 for ; Fri, 10 Jan 2003 14:41:08 -0800 X-Authentication-Warning: ns.aus.com: rsharpe owned process doing -bs Date: Fri, 10 Jan 2003 14:41:07 -0800 (PST) From: Richard Sharpe X-X-Sender: To: Subject: What prevents there from being a race with open(...,O_CREAT | O_EXCL,...) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, 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? Regards ----- Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message