From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Patterson Date: Wed, 06 Oct 2004 21:22:03 +0000 Subject: Re: Problems using scsi_id with udevstart Message-Id: <1097097723.8752.28.camel@bluto.andrew> MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-9uJQT1hUofoFl9ONmI9F" List-Id: References: <1097019226.2300.38.camel@bluto.andrew> In-Reply-To: <1097019226.2300.38.camel@bluto.andrew> To: linux-hotplug@vger.kernel.org --=-9uJQT1hUofoFl9ONmI9F Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2004-10-06 at 21:13 +0200, Kay Sievers wrote: > On Wed, 2004-10-06 at 12:42 -0600, Andrew Patterson wrote: > > On Wed, 2004-10-06 at 09:59 -0700, Patrick Mansfield wrote: > > > On Wed, Oct 06, 2004 at 10:26:13AM -0600, Andrew Patterson wrote: > > >=20 > > > > Note: here is the error you get when scsi_id is run without any > > > > parameters: > > > >=20 > > > > # /sbin/scsi_id > > > > -s must be specified > > >=20 > > > For the udev PROGRAM rules with no arguments, it is effectively invok= ed > > > like this (well there are other environment values but scsi_id only c= ares > > > about DEVPATH): > > >=20 > > > DEVPATH=3D/block/sda /sbin/scsi_id block > > >=20 > >=20 > > This is what I thought was supposed to happen. I printed out the > > arguments and the environment when scsi_id was invoked through > > udevstart. No arguments were passed and UDEVPATH was always set > > to /class/net/lo for every path in /sys. Note that DEVNAME does seem t= o > > be set correctly. >=20 > Yes, this is a bug. We need to export the DEVPATH for the callout if we > run as udevstart. I will fix that now. So did you confirm that the subsystem is indeed being passed as an argument when running udevstart as well? My testing shows no. I think you need both to make this work. Andrew >=20 > Thanks, > Kay >=20 --=20 Andrew Patterson =20 Hewlett-Packard --=-9uJQT1hUofoFl9ONmI9F 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) iD8DBQBBZGH7oKXgdXvblSgRAvL0AJ0d9bh0Ilkzlr/SJiKkI+IR5MppCQCfaOj0 D9reMOMUSmlNBsYTccQyMJs= =eCUx -----END PGP SIGNATURE----- --=-9uJQT1hUofoFl9ONmI9F-- ------------------------------------------------------- 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