Date: Sat, 6 Mar 2010 01:13:53 -0800 From: Garrett Cooper <yanefbsd@gmail.com> To: Jaakko Heinonen <jh@freebsd.org> Cc: freebsd-hackers@freebsd.org, Poul-Henning Kamp <phk@phk.freebsd.dk>, Bruce Evans <brde@optusnet.com.au>, Alexander Best <alexbestms@wwu.de> Subject: Re: namei() returns EISDIR for "/" (Re: svn commit: r203990 - head/lib/libc/sys) Message-ID: <7d6fde3d1003060113t72164fdbn3d0367d2fec540c1@mail.gmail.com> In-Reply-To: <20100305055758.GA1062@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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Mar 4, 2010 at 9:57 PM, Jaakko Heinonen <jh@freebsd.org> wrote: > On 2010-02-28, Jaakko Heinonen wrote: >> > > =A0 http://people.freebsd.org/~jh/patches/lookup-root.diff > > I have updated the patch taking some of bde's comments into account. The > new version also includes updates for namei(9) manual page. > > The patch is attached to this mail and also found at: > > =A0 =A0 =A0 =A0http://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] 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? [EMLINK] [CX] [Option Start] The file named by old is a directory, and the link count of the parent directory of new would exceed {LINK_MAX}. [Option End] Thanks! -Garrett [*] I took a really superficial look at ZFS and this is what I found (from zfs_pathconf): switch (cmd) { case _PC_LINK_MAX: *valp =3D INT_MAX; return (0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7d6fde3d1003060113t72164fdbn3d0367d2fec540c1>