From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 7 10:55:04 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50588106566C for ; Sun, 7 Mar 2010 10:55:04 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from gw02.mail.saunalahti.fi (gw02.mail.saunalahti.fi [195.197.172.116]) by mx1.freebsd.org (Postfix) with ESMTP id 03D378FC0A for ; Sun, 7 Mar 2010 10:55:03 +0000 (UTC) Received: from a91-153-117-195.elisa-laajakaista.fi (a91-153-117-195.elisa-laajakaista.fi [91.153.117.195]) by gw02.mail.saunalahti.fi (Postfix) with ESMTP id BB19E1394F8; Sun, 7 Mar 2010 12:54:57 +0200 (EET) Date: Sun, 7 Mar 2010 12:54:57 +0200 From: Jaakko Heinonen To: Garrett Cooper Message-ID: <20100307105457.GB9015@a91-153-117-195.elisa-laajakaista.fi> References: <6413.1266433105@critter.freebsd.dk> <20100218064545.J2074@besplex.bde.org> <20100218095538.GA2318@a91-153-117-195.elisa-laajakaista.fi> <20100225195138.GA3323@a91-153-117-195.elisa-laajakaista.fi> <20100226091923.X2605@delplex.bde.org> <20100228174936.GA1252@a91-153-117-195.elisa-laajakaista.fi> <20100305055758.GA1062@a91-153-117-195.elisa-laajakaista.fi> <7d6fde3d1003060113t72164fdbn3d0367d2fec540c1@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7d6fde3d1003060113t72164fdbn3d0367d2fec540c1@mail.gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-hackers@freebsd.org, Poul-Henning Kamp , Bruce Evans , Alexander Best Subject: Re: namei() returns EISDIR for "/" (Re: svn commit: r203990 - head/lib/libc/sys) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Mar 2010 10:55:04 -0000 On 2010-03-06, Garrett Cooper wrote: > > > >        http://people.freebsd.org/~jh/patches/lookup-root.2.diff > > 1. EBUSY's new definition doesn't look correct for rename(2) given > POSIX's definition ( > http://www.opengroup.org/onlinepubs/009695399/functions/rename.html ): > > [EBUSY] > [CX] [Option Start] The directory named by old or new is currently > in use by the system or another process, and the implementation > considers this an error. [Option End] Well, I don't think that it conflicts with POSIX. The root directory is in use by the system and it's not allowed to be renamed. > 2. I also did some quick snooping around and all filesystems that > support symlinks that FreeBSD has, sans ZFS [*], seem to support > EMLINK. Should we add this to the documentation? Probably, but it's not related to the changes made by the patch. -- Jaakko