From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 6 15:54:07 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 585A616A41F for ; Tue, 6 Sep 2005 15:54:07 +0000 (GMT) (envelope-from kamalpr@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id B60C343D45 for ; Tue, 6 Sep 2005 15:54:06 +0000 (GMT) (envelope-from kamalpr@gmail.com) Received: by xproxy.gmail.com with SMTP id i27so431914wxd for ; Tue, 06 Sep 2005 08:54:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:references; b=oCrwwhcZjuYbITycxuG0PEa0AVUgfFwY5jU8YvAhFkymT6QhbKp+J2+J/KSDYKD707pruhpJumJkQandhmur7c5F3arDH4Rgszub+PFMmRBGMWOxsCcABVQDlqPqZUlBudEy0WYk3Zv79ScMVbPOcrPmz4Cl7wxVld/3ppwJSO4= Received: by 10.70.13.6 with SMTP id 6mr122176wxm; Tue, 06 Sep 2005 08:29:46 -0700 (PDT) Received: by 10.70.23.12 with HTTP; Tue, 6 Sep 2005 08:29:46 -0700 (PDT) Message-ID: Date: Tue, 6 Sep 2005 20:59:46 +0530 From: "Kamal R. Prasad" To: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= In-Reply-To: <868xyack37.fsf@xps.des.no> Mime-Version: 1.0 References: <868xyack37.fsf@xps.des.no> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org, Robert Watson , Sergey Uvarov Subject: Re: vn_fullpath() again X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kamalp@acm.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2005 15:54:07 -0000 >=20 > [snip] =20 I did. You just don't get it. A file may be associated with zero, > one or more names and none of these names are more correct or > authoritative than any of the others. If a user does 'ln /bin/ls > /tmp' (assuming /bin and /tmp are on the same filesystem), it may be > obvious to you that /bin/ls is the "real name" is /tmp/ls is just an > alias, but it is not obvious to the kernel. In fact, the kernel is > unable to see any difference at all between these two names. Yes -but when a user requests a mapping of vnode to pathname, he is asking= =20 in the context of files he has accessed (recently). In this context, the=20 name cache does suffice -but unfortunately not every unix variant provides= =20 access to it. regards -kamal