From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Sun, 07 Mar 2004 14:41:49 +0000 Subject: Re: udev problems Message-Id: <1078670508.1170.47.camel@pim> List-Id: References: <200403071315.02925.michal@cihar.com> In-Reply-To: <200403071315.02925.michal@cihar.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 Sun, 2004-03-07 at 15:30, Michal =C8iha=F8 wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > On Sunday 07 of March 2004 15:16, Kay Sievers wrote: > > On Sun, 2004-03-07 at 13:15, Michal =C8iha=F8 wrote: > > > 21: BUS=3D"scsi", SYSFS{vendor}=3D"Apacer ", SYSFS{model}=3D"Mega St= eno =20 > > > ", PROGRAM=3D"/etc/udev/apacer.sh %k %b %n", NAME=3D"%c{1}", SYMLINK= =3D"%k > > > %c{2} %c{3}" > > > > > > Why does every time match another rule? > > > > Yeah, It's a bug in the trailin whitespace removal. > > We mangle the attribut evalue while we compare it and > > libsysfs reuses it :( > > > > Just remove your trailing whitespace from "Apacer " and please tell me > > if it works. Anyway I will fix it soon. >=20 > When I leave just: >=20 > BUS=3D"scsi", SYSFS{vendor}=3D"Apacer", PROGRAM=3D"/etc/udev/apacer.sh %k= %b %n",=20 > NAME=3D"%c{1}", SYMLINK=3D"%k %c{2} %c{3}" >=20 > It still behaves very non determinantely, sometimes it catches all three = > slots, sometimes just one :-(. This doesn't depend whether there is anoth= er=20 > rule that will catch this device. >=20 > Same happens when I try to match it on serial number (AFAIK no trailing=20 > space): >=20 > BUS=3D"usb", SYSFS_serial=3D"19220DA1018B", PROGRAM=3D"/etc/udev/apacer.s= h %k %b=20 > %n", NAME=3D"%c{1}", SYMLINK=3D"%k %c{2} %c{3}" If devices are missing, whats in sysfs '/sys/block/' at this time? You may use 'tree /sys/block' to look at it. Hmm, if all devices are there, seems we need a udev version with debug enabled. Is it possible for you to build udev from the sources and run 'make DEBUG=3Dtrue'? Kay ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id638&op=CCk _______________________________________________ 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