Re: scsi_id: sending ioctl 2285 to a partition

From: Kay Sievers
Date: Sat Feb 11 2012 - 06:07:51 EST


On Fri, Feb 10, 2012 at 09:17, Paolo Bonzini <pbonzini@xxxxxxxxxx> wrote:
> On 02/09/2012 10:00 PM, Matthew Wilcox wrote:

>> I'm pretty sure it's doing it as root ... it'll be run by udev, after all.
>
> What does the rule look like? ÂHere it is like this:
>
> # scsi devices
> KERNEL=="sd*[!0-9]|sr*", ENV{ID_SERIAL}!="?*",
> IMPORT{program}="scsi_id --export --whitelisted -d $tempnode",
> ENV{ID_BUS}="scsi"
>
> which should exclude partitions, and indeed I don't see any such message. ÂI
> also have this rule:

I don't think "sd*[!0-9]" matches partition devices.

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/