From owner-freebsd-hackers Thu Feb 1 12:44:32 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mta5.rcsntx.swbell.net (mta5.rcsntx.swbell.net [151.164.30.29]) by hub.freebsd.org (Postfix) with ESMTP id 70B5C37B503 for ; Thu, 1 Feb 2001 12:44:14 -0800 (PST) Received: from holly.calldei.com ([208.191.149.190]) by mta5.rcsntx.swbell.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0G830005HIB3RN@mta5.rcsntx.swbell.net> for freebsd-hackers@FreeBSD.ORG; Thu, 1 Feb 2001 14:30:40 -0600 (CST) Received: (from chris@localhost) by holly.calldei.com (8.11.1/8.9.3) id f11KWlh16646; Thu, 01 Feb 2001 14:32:47 -0600 (CST envelope-from chris) Date: Thu, 01 Feb 2001 14:32:46 -0600 From: Chris Costello Subject: Re: fdescfs oddities In-reply-to: <20010201162352.B351@nebula.cybercable.fr>; from mux@qualys.com on Thu, Feb 01, 2001 at 04:23:52PM +0100 To: Maxime Henrion Cc: freebsd-hackers@FreeBSD.ORG Reply-To: chris@calldei.com Message-id: <20010201143246.B632@holly.calldei.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5i References: <20010201162352.B351@nebula.cybercable.fr> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thursday, February 01, 2001, Maxime Henrion wrote: > I run a 4.2-STABLE machine, world done this morning. I had some troubles with > fdescfs. Reading the fdesc(5) manual page, I have to mount the fdescfs like I > would mount procfs. But if I compile my kernel with options FDESC or if I load > the fdesc.ko kernel module, I have access to /dev/fd/* and /dev/std* without > mounting anything. Outdated documentation ? > > The real problem comes when I actually try to mount fdescfs. I was able to mount > it several times on the same place (/dev) and 'mount' reported fdescfs as > mounted several times. Just after this, my box locked up. I was able to switch > to another virtual tty with alt+Fx but wasn't able to type anything nor to > reboot with ctrl+alt+suppr. I've done some work on fdescfs in -CURRENT a while back that gutted a lot of the old code, including what may have been making your shell have difficulties with /dev/tty. The proper way to do it is to union mount it on /dev. I have no idea as to what extent of testing my code has received, so I'm rather reluctant to commit it to -STABLE. There's nothing really wrong with the /dev/fd and /dev/tty you have without fdesc as far as you or your programs are concerned, but the implementation (as opposed to interface) is a bit of a hack. -- +-------------------+---------------------------------------------------+ | Chris Costello | CCITT - Can't Conceive Intelligent Thoughts Today | | chris@calldei.com | | +-------------------+---------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message