From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Patterson Date: Wed, 06 Oct 2004 23:33:04 +0000 Subject: Problem parsing %s in udev rules Message-Id: <1097105584.9273.9.camel@bluto.andrew> MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-zrjufYrQSJQ9zRJDEcjG" List-Id: To: linux-hotplug@vger.kernel.org --=-zrjufYrQSJQ9zRJDEcjG Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Udev seems to be chopping off anything seen in a rule after a %s. For example, if I have the following rule: BUS=3D"scsi", KERNEL=3D"sd*", PROGRAM=3D"/sbin/scsi_id", NAME=3D"%k", SYMLINK=3D"scsi_disks/some-proceeding-stuff-%s{model}-some-following- stuff" Everything after the %s{model} is ignored. Furthermore, everything in model following whitespace is ignored as well. I.e, if model contains "HP 34.7G", the resulting device file created is /dev/scsi_disks/some-proceeding-stuff-HP. I used the following command to run this test: # DEVPATH=3D/block/sda ACTION=3Dadd ./udev block I also get the same behavior when using udevstart (patched to fix parameter passing problems). Environment: OS: debian unstable Arch: IA-64 udev version: 032 scsi_id version: 0.5 Andrew --=20 Andrew Patterson =20 Hewlett-Packard --=-zrjufYrQSJQ9zRJDEcjG 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) iD8DBQBBZICvoKXgdXvblSgRAoFwAKDAAp0PC3KSySWBLVe0W4XGJTARHQCgn/5j k47osclxhCsKjDQ/J9NZf1c= =xxUV -----END PGP SIGNATURE----- --=-zrjufYrQSJQ9zRJDEcjG-- ------------------------------------------------------- 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