* [PATCH] udev add some ID tests
@ 2004-02-13 1:30 Patrick Mansfield
2004-02-16 22:00 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Patrick Mansfield @ 2004-02-13 1:30 UTC (permalink / raw)
To: linux-hotplug
Hi Greg -
Patch against current udev bk to add a few ID rule tests.
=== test/udev-test.pl 1.30 vs edited ==--- 1.30/test/udev-test.pl Wed Feb 11 16:49:51 2004
+++ edited/test/udev-test.pl Thu Feb 12 17:25:12 2004
@@ -348,6 +348,52 @@
KERNEL="ttyUSB0", NAME="visor"
EOF
},
+ {
+ desc => "ID rule",
+ subsys => "block",
+ devpath => "block/sda",
+ expected => "scsi-0:0:0:0",
+ conf => <<EOF
+BUS="usb", ID="0:0:0:0", NAME="not-scsi"
+BUS="scsi", ID="0:0:0:1", NAME="no-match"
+BUS="scsi", ID=":0", NAME="short-id"
+BUS="scsi", ID="/0:0:0:0", NAME="no-match"
+BUS="scsi", ID="0:0:0:0", NAME="scsi-0:0:0:0"
+EOF
+ },
+ {
+ desc => "ID wildcard all",
+ subsys => "block",
+ devpath => "block/sda",
+ expected => "scsi-0:0:0:0",
+ conf => <<EOF
+BUS="scsi", ID="*:1", NAME="no-match"
+BUS="scsi", ID="*:0:1", NAME="no-match"
+BUS="scsi", ID="*:0:0:1", NAME="no-match"
+BUS="scsi", ID="*", NAME="scsi-0:0:0:0"
+BUS="scsi", ID="0:0:0:0", NAME="bad"
+EOF
+ },
+ {
+ desc => "ID wildcard partial",
+ subsys => "block",
+ devpath => "block/sda",
+ expected => "scsi-0:0:0:0",
+ conf => <<EOF
+BUS="scsi", ID="*:0", NAME="scsi-0:0:0:0"
+BUS="scsi", ID="0:0:0:0", NAME="bad"
+EOF
+ },
+ {
+ desc => "ID wildcard partial 2",
+ subsys => "block",
+ devpath => "block/sda",
+ expected => "scsi-0:0:0:0",
+ conf => <<EOF
+BUS="scsi", ID="*:0:0:0", NAME="scsi-0:0:0:0"
+BUS="scsi", ID="0:0:0:0", NAME="bad"
+EOF
+ },
);
# set env
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] udev add some ID tests
2004-02-13 1:30 [PATCH] udev add some ID tests Patrick Mansfield
@ 2004-02-16 22:00 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-02-16 22:00 UTC (permalink / raw)
To: linux-hotplug
On Thu, Feb 12, 2004 at 05:30:39PM -0800, Patrick Mansfield wrote:
> Hi Greg -
>
> Patch against current udev bk to add a few ID rule tests.
Nice, thanks for doing this. I've applied it.
greg k-h
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-16 22:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-13 1:30 [PATCH] udev add some ID tests Patrick Mansfield
2004-02-16 22:00 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).