* Re: RESULT is not matching
2005-06-22 22:28 RESULT is not matching ('
@ 2005-06-22 22:40 ` Kay Sievers
0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2005-06-22 22:40 UTC (permalink / raw)
To: linux-hotplug
On Wed, Jun 22, 2005 at 10:28:34PM +0000, (' wrote:
> <html><head><style type="text/css">body{font:12px Arial;margin:3px;overflow-y:auto;overflow-x:auto}p{margin:0px;}blockquote, ol, ul{margin-top:0px;margin-bottom:0px;}</style></head>
>
> <body><div style="display: block; font-family: Arial; font-size: 12px;">Hi,<br>
> <br>
> I've written a couple of udev.rules that should identify 2 disks using
> the UUID obtained from scsi_id. I have been running udev.debug and
> checking the debug information out to /var/log/messages and I find that
> the output from scsi_id never matches my RESULT ... even though i think
> it should.<br>
> <br>
> So here are the rules:<br>
> BUS="scsi", PROGRAM="/sbin/scsi_id -g -s /block/%k", RESULT="200000e1100a35065", NAME="disk-sda%n"<br>
> <br>
> BUS="scsi", RESULT="200000e1100a34fef", NAME="disk-sdb%n"<br>
> BUS="scsi", RESULT="3600508b4000151bf0001e000015b0000", NAME="sues-sdc", SYMLINK="tester"<br>
> BUS="scsi", RESULT="3600508b4000151bf0001e00001610000", NAME="sues-sdd"<br>
> <br>
> And here are a few of the lines from the messages file ...<br>
> <br>
> Jun 23 01:04:00 rx1620-1 udev[12450]: namedev_name_device: process rule<br>
> Jun 23 01:04:00 rx1620-1 udev[12450]: match_rule: check for BUS dev->bus='scsi' sysfs_device->bus='scsi'<br>
> Jun 23 01:04:00 rx1620-1 udev[12450]: match_rule: BUS matches<br>
> Jun 23 01:04:00 rx1620-1 udev[12450]: match_rule: check for RESULT
> dev->result='3600508b4000151bf0001e00001610000',
> udev->program_result='3600508b4000151bf0001e00001610000 '<br>
Please try if RESULT="200000e1100a35065*" works.
Kay
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id\x16492&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