From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 22 Jun 2005 22:40:25 +0000 Subject: Re: RESULT is not matching Message-Id: <20050622224025.GB4576@vrfy.org> List-Id: References: <7795111404396@lycos-europe.com> In-Reply-To: <7795111404396@lycos-europe.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, Jun 22, 2005 at 10:28:34PM +0000, (' wrote: > > >
Hi,
>
> 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.
>
> So here are the rules:
> BUS="scsi", PROGRAM="/sbin/scsi_id -g -s /block/%k", RESULT="200000e1100a35065", NAME="disk-sda%n"
>
> BUS="scsi", RESULT="200000e1100a34fef", NAME="disk-sdb%n"
> BUS="scsi", RESULT="3600508b4000151bf0001e000015b0000", NAME="sues-sdc", SYMLINK="tester"
> BUS="scsi", RESULT="3600508b4000151bf0001e00001610000", NAME="sues-sdd"
>
> And here are a few of the lines from the messages file ...
>
> Jun 23 01:04:00 rx1620-1 udev[12450]: namedev_name_device: process rule
> Jun 23 01:04:00 rx1620-1 udev[12450]: match_rule: check for BUS dev->bus='scsi' sysfs_device->bus='scsi'
> Jun 23 01:04:00 rx1620-1 udev[12450]: match_rule: BUS matches
> Jun 23 01:04:00 rx1620-1 udev[12450]: match_rule: check for RESULT > dev->result='3600508b4000151bf0001e00001610000', > udev->program_result='3600508b4000151bf0001e00001610000 '
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_id492&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