From owner-freebsd-fs Mon Mar 3 13:51:39 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id NAA00707 for fs-outgoing; Mon, 3 Mar 1997 13:51:39 -0800 (PST) Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id NAA00701 for ; Mon, 3 Mar 1997 13:51:37 -0800 (PST) Received: from rubel.cs.tu-berlin.de (loewis@rubel.cs.tu-berlin.de [130.149.20.46]) by mail.cs.tu-berlin.de (8.8.5/8.8.5) with ESMTP id WAA17101; Mon, 3 Mar 1997 22:51:29 +0100 (MET) From: "Martin v.Loewis" Received: (from loewis@localhost) by rubel.cs.tu-berlin.de (8.8.5/8.8.5) id WAA20734; Mon, 3 Mar 1997 22:51:13 +0100 (MET) Message-Id: <199703032151.WAA20734@rubel.cs.tu-berlin.de> Subject: Re: How to get the parent directory vnode of a vnode? To: hannibal@cyberstation.net (Dan Walters) Date: Mon, 3 Mar 1997 22:51:11 +0100 (MET) Cc: freebsd-fs@freebsd.org In-Reply-To: from "Dan Walters" at Feb 28, 97 05:32:20 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-fs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > in the layer's per-vnode structure. I just noticed, however, that there > is no reference to the parent directory's vnode in a vnode structure, so > I'm having some difficulty deciding on the proper way to lookup the vnode > for the ACL file (which is kept in the same directory). Hmm. Maybe I'm missing something: There usually is not necessarily a (single) parent vnode for a given vnode. In the presence of hard links, a vnode might be referenced from different 'parents'. Also, the root directory usually does not have a parent vnode. Regards, Martin