From owner-freebsd-fs Sun Sep 14 03:01:09 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id DAA03505 for fs-outgoing; Sun, 14 Sep 1997 03:01:09 -0700 (PDT) Received: from usr06.primenet.com (tlambert@usr06.primenet.com [206.165.6.206]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id DAA03499 for ; Sun, 14 Sep 1997 03:01:07 -0700 (PDT) Received: (from tlambert@localhost) by usr06.primenet.com (8.8.5/8.8.5) id DAA14437; Sun, 14 Sep 1997 03:00:41 -0700 (MST) From: Terry Lambert Message-Id: <199709141000.DAA14437@usr06.primenet.com> Subject: Re: getcwd() as syscall... To: phk@critter.freebsd.dk (Poul-Henning Kamp) Date: Sun, 14 Sep 1997 10:00:41 +0000 (GMT) Cc: tlambert@primenet.com, fs@FreeBSD.ORG In-Reply-To: <1328.874222680@critter.freebsd.dk> from "Poul-Henning Kamp" at Sep 14, 97 09:38:00 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-fs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Terry, read up on the code before you speak. > > It's always a good idea > > There is one point where you by accident is not entirely wrong, but > it is obvious from the rest that you don't know why that statement > is somewhat true. I will leave it to you to figure out which one. > > I will only address the two most wrong points here: > > >Other than that, it's a *great* idea, and the purpose behind > >the parent pointers in the first place. 8-) 8-). > > No it wasn't. [*] > > >Oh... is there an option to fsck to set these on a legacy FS? > > They are not stored on disk. Sorry. I thought that this had been done on my suggestion, per modification made to UFS for the NXFS code. If you will remember, I was the one who originally pointed out that POSIX did not require directories to be files, and therefore, it was OK to not allow hard links on directories. If you have a hard link on a directory, there's no reason *not* to store this data on disk. After all, there are ree fields which can be used for this purpose. If this is not currently the case, then it *should* be. Personally, I'd change the mechanism whereby hard links are stored\ on disk to ensure that files had parent pointers as well. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.