From owner-freebsd-current Wed Aug 15 3:31:36 2001 Delivered-To: freebsd-current@freebsd.org Received: from theinternet.com.au (co3040619-a.kelvn1.qld.optushome.com.au [203.164.207.8]) by hub.freebsd.org (Postfix) with ESMTP id 4BB8037B40A; Wed, 15 Aug 2001 03:31:32 -0700 (PDT) (envelope-from akm@theinternet.com.au) Received: (from akm@localhost) by theinternet.com.au (8.11.4/8.11.4) id f7FAVHN20002; Wed, 15 Aug 2001 20:31:17 +1000 (EST) (envelope-from akm) Date: Wed, 15 Aug 2001 20:31:17 +1000 From: Andrew Kenneth Milton To: Poul-Henning Kamp Cc: Andrew Kenneth Milton , Greg Lehey , Michael Lucas , current@FreeBSD.ORG Subject: Re: devfs and Vinum (was: any -current && vinum problems?) Message-ID: <20010815203117.L854@zeus.theinternet.com.au> References: <20010815201521.K854@zeus.theinternet.com.au> <78621.997870804@critter> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <78621.997870804@critter>; from Poul-Henning Kamp on Wed, Aug 15, 2001 at 12:20:04PM +0200 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 +-------[ Poul-Henning Kamp ]---------------------- | In message <20010815201521.K854@zeus.theinternet.com.au>, Andrew Kenneth Milton | writes: | >+-------[ Poul-Henning Kamp ]---------------------- | >| In message <20010815195344.J854@zeus.theinternet.com.au>, Andrew Kenneth Milton | >| writes: | >| | >| >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. | >| | >| It should simply make_dev() "dri/card%d", the directory is created | >| by devfs on demand. You should not mkdir("/dev/dri"); | > | >Sure, how do you tell at run time whether a system is running DEVFS or not, | | if the sysctl variable vfs.devfs.generation exists you're running DEVFS. | | In the kernel you check the value of the variable "devfs_present". | | >There are going to be other things that assume that /dev/ is just another | >directory and are going to try to mkdir /dev/foo. | | Just how did you do the mkdir ? From userland ? From the kernel ? In this case it's done from inside a kernel module, which is loaded by the user, i.e. not automatically loaded by XFree. -- 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