Date: Thu, 01 Feb 2001 14:32:46 -0600 From: Chris Costello <chris@calldei.com> To: Maxime Henrion <mux@qualys.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: fdescfs oddities Message-ID: <20010201143246.B632@holly.calldei.com> In-Reply-To: <20010201162352.B351@nebula.cybercable.fr>; from mux@qualys.com on Thu, Feb 01, 2001 at 04:23:52PM %2B0100 References: <20010201162352.B351@nebula.cybercable.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010201143246.B632>