From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Patterson Date: Wed, 06 Oct 2004 16:20:56 +0000 Subject: Re: Problems using scsi_id with udevstart Message-Id: <1097079656.2284.42.camel@bluto.andrew> MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-sFrlPuUJ02d7188HWpyD" List-Id: References: <1097019226.2300.38.camel@bluto.andrew> In-Reply-To: <1097019226.2300.38.camel@bluto.andrew> To: linux-hotplug@vger.kernel.org --=-sFrlPuUJ02d7188HWpyD Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2004-10-06 at 01:55 +0200, Kay Sievers wrote: > On Tue, Oct 05, 2004 at 05:33:46PM -0600, Andrew Patterson wrote: > > Hi, > >=20 > > I added the following udev rule to make human-readable device file name= s > > for my SCSI disks: > >=20 > > BUS=3D"scsi", KERNEL=3D"sd*", PROGRAM=3D"scsi_id", NAME=3D"scsi_disks/%= c-%b", SYMLINK=3D"%k" > ^^^^^^^ >=20 > You need an absolute path here to properly call the binary. Correct, too much cut an pasting. It still doesn't work even with the correct path. Here is the output using /sbin/scsi_id: namedev_name_device: sysfs_device->bus=3D'scsi' wait_for_device_to_initialize: looking for file 'vendor' on bus 'scsi' namedev_name_device: class_dev->name =3D 'sda' namedev_name_device: udev->kernel_name =3D 'sda' namedev_name_device: kernel_number=3D'' namedev_name_device: process rule match_rule: check for BUS dev->bus=3D'scsi' sysfs_device->bus=3D'scsi' match_rule: BUS matches match_rule: check for KERNEL dev->kernel=3D'sd*' class_dev->name=3D'sda' match_rule: KERNEL matches match_rule: check PROGRAM execute_program: path =3D /sbin/scsi_id execute_program: result is '' execute_program: exec program status 0x100 match_rule: PROGRAM returned nonzero match_rule: try parent sysfs device > Kay >=20 Andrew --=20 Andrew Patterson =20 Hewlett-Packard --=-sFrlPuUJ02d7188HWpyD Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBBZBtooKXgdXvblSgRAjVaAKDPgEodaSX3wHiZCB4gzbrReF3+nwCgnUxo DjUKt+GSCW6nA91UxdRcrV4= =e7Cs -----END PGP SIGNATURE----- --=-sFrlPuUJ02d7188HWpyD-- ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ 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