From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 6 09:13:54 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 33CFB106564A; Sat, 6 Mar 2010 09:13:54 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id BA61C8FC08; Sat, 6 Mar 2010 09:13:53 +0000 (UTC) Received: by pwj1 with SMTP id 1so3195379pwj.13 for ; Sat, 06 Mar 2010 01:13:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ixIL4zcQtur56F4Gekv+sTwXJHqUgmOnxP+V7LatcNo=; b=Rk5RAvpUB344lyqHnofTrisNyOy/91bS5KYQi5nzZ0JFk/FyS+g7sKrxtQcBxg83T7 WqB+LyQy/tMVeaGoQsa3VyqXt0qj/K0vETDQheHmhLWgDZFhPRJXo7ylKC8MmAiXuI3z 8a7ifNgOF8lLM3p3GDjy25QBzQBQBVmhigadE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=raSc5OhN6zFOGBnTBxW+VUtrAZmj3kFCkCUHgXi2ErTaaTBSXGRS5p21Pu9assikpj 8v+s0wT8BoXoDwbFys4aE6puUIcK4P8Vgh33CfWn+2yBihlVC3UU3ZII1U7bIpxzE/0h 4sNduqUETsK9V+RIczMC6LV+02ScADsUnFSVo= MIME-Version: 1.0 Received: by 10.142.67.36 with SMTP id p36mr1405252wfa.167.1267866833281; Sat, 06 Mar 2010 01:13:53 -0800 (PST) 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> Date: Sat, 6 Mar 2010 01:13:53 -0800 Message-ID: <7d6fde3d1003060113t72164fdbn3d0367d2fec540c1@mail.gmail.com> From: Garrett Cooper To: Jaakko Heinonen Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Sat, 06 Mar 2010 09:13:54 -0000 On Thu, Mar 4, 2010 at 9:57 PM, Jaakko Heinonen 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);