From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Thu, 12 Apr 2007 22:15:11 +0000 Subject: RE: not dynamically creating disk device nodes Message-Id: <1176416111.17474.6.camel@lov.localdomain> List-Id: References: <3ae72650704110217k73ebec17wf92af95654d197fc@mail.gmail.com> In-Reply-To: <3ae72650704110217k73ebec17wf92af95654d197fc@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Thu, 2007-04-12 at 18:02 -0400, Leisner, Martin wrote: > That's what's happening. When I crate the block device, there's no > MAJOR/MINOR. >=20 > It seems to be making character devices fine (I modified some of the > LDD3 examples to create a class, > and it works fine). >=20 > For character devices, udev is opening the /class//dev file. > For block devices, its NOT opening the /block//dev > file. We added stuff to the kernel, to make udev more reliable, and this version of udev depends on a newer kernel. I suggest running an older udev or a newer kernel. > What's a good way to debug udevd? Is there a way to run it without > forks? It will always fork, the daemon just handles the event queue. > Or is there magic to debug a forking process (catch/follow-fork seems > crude and only works > once). You can set the log level in /etc/udev/udev.conf or dynamically with udevcontrol. And strace -f should work too, if the log does not provide the needed information. Kay > > -----Original Message----- > > From: linux-hotplug-devel-bounces@lists.sourceforge.net=20 > > [mailto:linux-hotplug-devel-bounces@lists.sourceforge.net] On=20 > > Behalf Of Kay Sievers > > Sent: Wednesday, April 11, 2007 5:18 AM > > To: Leisner, Martin > > Cc: linux-hotplug-devel@lists.sourceforge.net > > Subject: Re: not dynamically creating disk device nodes > >=20 > > On 4/9/07, Leisner, Martin wrote: > > > I'm trying to use udev-092 on linux-2.6.10. > > > > > > Most things work. > > > > > > udevstart works fine. > > > > > > But when I start playing around with fdisk, the device nodes aren't > > > getting erased/created > > > for the hard drive (udevstart had no problem figuring this out).. > > > > > > udevd says: > > > > > > udevd[1163]: udev_event_run: seq 707 forked, pid [1168],=20 > > 'add' 'block', > > > 0 seconds old > > > udevd-event[1168]: udev_db_get_device: no db file to read > > > /dev/.udev/db/block@sda: No such file or directory > > > udevd-event[1168]: udev_db_get_device: no db file to read > > > /dev/.udev/db/block@sda: No such file or directory > > > udevd-event[1168]: run_program: '/lib/udev/vol_id --export > > > /dev/.tmp-0-0' > >=20 > > Udev does not seem to get the correct major/minor number for the > > device, "0-0" looks wrong. > >=20 > > It is likely, that the udev daemon (10 months old) expects > > MAJOR/MINOR-values in the event environment, but that kernel (2.5 > > years old) doesn't export it. > >=20 > > Udevstart reads that information from the "dev" file in sysfs, that's > > why it may work just fine. > >=20 > > Kay > >=20 > > -------------------------------------------------------------- > > ----------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the=20 > > chance to share your > > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge > > &CID=DEVDEV > > _______________________________________________ > > Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net > > Linux-hotplug-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel > >=20 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel