Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!xlink.net!subnet.sub.net!smurf.sub.org!smurf.sub.org!not-for-mail
From: urlichs@smurf.sub.org (Matthias Urlichs)
Newsgroups: comp.os.386bsd.bugs
Subject: Re: NetBSD 0.9 kernfs feature & whatis.db generator
Date: 23 Sep 1993 11:12:04 +0200
Organization: Smurf-O-Box, Nuernberg, FRG
Lines: 26
Message-ID: <27rp94$9tm@smurf.sub.org>
References: <89at03uedatl00@amdahl.uts.amdahl.com> <8eWA03X=daw000@amdahl.uts.amdahl.com>
NNTP-Posting-Host: localhost
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
In comp.os.386bsd.bugs, article <8eWA03X=daw000@amdahl.uts.amdahl.com>,
agc@uts.amdahl.com (Alistair G. Crooks) writes:
> 1. NetBSD 0.9 has the new kernfs feature. I'm sure it's nice, but
> when I do an "ls -lR /", I soon get into a loop because of kernfs.
>
> It goes all the way into /kern/root fine, and then seems to recurse
> through the directories, so that eventually it's listing
> /kern/root/kern/root/kern/root/kern/root/kern/root
>
> I've not had the patience to let it continue to see how far it will
> go, but I assume that this will continue almost ad infinitum. Any
> comments?
>
Linux fakes a symlink at that point:
lrwx------ 1 urlichs user 64 Sep 23 11:08 /proc/self/root -> [0802]:2
Using the link will take you to the correct directory, even though readlink()
gives these crypric characters (obviously [device]:inode).
--
Peter's Theorem: Incompetence plus incompetence equals incompetence.
-- Laurance J. Peter
--
Matthias Urlichs \ XLink-POP Nürnberg | EMail: urlichs@smurf.sub.org
Schleiermacherstrasse 12 \ Unix+Linux+Mac | Phone: please use email...
90491 Nürnberg (Germany) \ Consulting+Networking+Programming+etc'ing