Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Feb 2001 18:54:05 +0100
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Peter Wemm <peter@netplex.com.au>
Cc:        Warner Losh <imp@harmony.village.org>, Jordan Hubbard <jkh@winston.osd.bsdi.com>, John Indra <john@naver.co.id>, freebsd-current@FreeBSD.ORG
Subject:   Re: DEVFS newbie... 
Message-ID:  <14529.981222845@critter>
In-Reply-To: Your message of "Sat, 03 Feb 2001 09:48:56 PST." <200102031748.f13HmuW44694@mobile.wemm.org> 

next in thread | previous in thread | raw e-mail | index | archive | help

>> I have seriously been thinking about some way to say something like
>> 	mount -t devfs -o jailset /home/jail/dev
>> but an elegant implementation evades me at this moment.
>
>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
>
>It solves several problems, but is kinda odd as it involves a
>cross-filesystem hard link.

unwhiteout(2) has more promise I think.

--
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14529.981222845>