From owner-freebsd-current Wed Aug 15 10:12:41 2001 Delivered-To: freebsd-current@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id 23AFF37B414; Wed, 15 Aug 2001 10:12:34 -0700 (PDT) (envelope-from julian@elischer.org) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id KAA12798; Wed, 15 Aug 2001 10:06:56 -0700 (PDT) Date: Wed, 15 Aug 2001 10:06:55 -0700 (PDT) From: Julian Elischer To: Andrew Kenneth Milton Cc: Poul-Henning Kamp , Greg Lehey , Michael Lucas , current@FreeBSD.ORG Subject: Re: devfs and Vinum (was: any -current && vinum problems?) In-Reply-To: <20010815195344.J854@zeus.theinternet.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG the lack of subdirectory support is a pitty. it was a primary design goal in the previous devfs and its disappearance caught me by surprise. (the support I mean) On Wed, 15 Aug 2001, Andrew Kenneth Milton wrote: > +-------[ Poul-Henning Kamp ]---------------------- > | In message <20010815113056.H854@zeus.theinternet.com.au>, Andrew Kenneth Milton > | writes: > | >+-------[ Greg Lehey ]---------------------- > | >| > | > > | >[snip] > | > > | >| whether it's been fixed. Basically, devfs as supplied in CURRENT had > | >| a 16 character limit on device names, and it didn't understand > | >| subdirectories: it treated the / as a part of the device name. > | > > | >The subdir part bit me about a week ago, so I'd say it's still not fixed. > | > | This is absolutely news to me. I'm pretty sure that you will find > | that /dev/fd[012] exists on your system and that it was created using > | '/' in make_dev calls... > > This I saw, but, I had no idea how this was done.. I've been in a flu induced > coma of late, so I didn't really search too hard to be completely honest.. > > | > | More details on this bug are most welcome. > > The problem turns up most violently within the XFree86 DRI Module, since > it now uses make_dev, and not mknod as it used to. > > The DRI Module first attempts to mkdir /dev/dri/, and then for each card > it supports attempts to use make_dev(9) on dri/card%d (0-whatever), I've > only got one card, so for me dri/card0. > > Loading the DRI module causes an instant panic (which I think is actually > caused by DRI, not DEVFS, it's still quite inconvenient). > > The same module works fine with a 'regular' /dev/ > > Assuming that the mkdirs were failing on /dev/ with DEVFS I made a symlink > in rc.devfs for /dev/dri -> /usr/dev/dri (that's how I found the bug with > directory targets of symlinks being treated as symlinks...). This still > caused the panic (which is sort of understandable since /usr/dev/ isn't in > /dev/). > > I remove the mkdirs and simply use make_dev on dri_card0 instead of dri/card0, > everything works like a charm. Using mknod also used to work fine with the > symlink and DEVFS. > > -- > Totally Holistic Enterprises Internet| | Andrew Milton > The Internet (Aust) Pty Ltd | | > ACN: 082 081 472 ABN: 83 082 081 472 | M:+61 416 022 411 | Carpe Daemon > PO Box 837 Indooroopilly QLD 4068 |akm@theinternet.com.au| > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message