From owner-freebsd-current Sat Feb 3 12: 4: 0 2001 Delivered-To: freebsd-current@freebsd.org Received: from critter.freebsd.dk (flutter.freebsd.dk [212.242.40.147]) by hub.freebsd.org (Postfix) with ESMTP id 4E2A937B401 for ; Sat, 3 Feb 2001 12:03:42 -0800 (PST) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.1/8.11.1) with ESMTP id f13K3gB14920; Sat, 3 Feb 2001 21:03:42 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Warner Losh Cc: Peter Wemm , freebsd-current@FreeBSD.ORG Subject: Re: DEVFS newbie... In-Reply-To: Your message of "Sat, 03 Feb 2001 12:48:00 MST." <200102031948.f13Jm1961781@harmony.village.org> Date: Sat, 03 Feb 2001 21:03:42 +0100 Message-ID: <14918.981230622@critter> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200102031948.f13Jm1961781@harmony.village.org>, Warner Losh writes: >In message <14760.981228917@critter> Poul-Henning Kamp writes: >: In message <200102031932.f13JWo961621@harmony.village.org>, Warner Losh writes: >: >In message <200102031748.f13HmuW44694@mobile.wemm.org> Peter Wemm writes: >: >: As bizzare as it sounds, I like Julian's hack for populating this stuff... >: >: ie: use a hard link to propagate nodes to the jailed /dev. >: >: >: >: eg: mount -t devfs -o empty /home/jail/dev >: >: ln /dev/null /home/jail/dev/null >: >: ln /dev/zero /home/jail/dev/zero >: >: ... >: >: mount -u -o ro /home/jail/dev >: > >: >But you can't do hard links accross file systems. Or is that a hack >: >of devfs to allow it, [...] >: >: Yes, it was a hack, and it will not be hacked that way in my DEVFS. > >I seem to recall talking to you about having symbolic links in your >devfs mean something "special" as a way around this problem. No that was another, and probably too avant garde idea Julian and I have discussed: Basically device-drivers create devices in a private namespace, in /dev you link from the filesystem namespace to the private namespace with a kind of symbolic link. It has too many "issues" with standards and VOP's to be viable right now. Doing straight symlinks would not work. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message