Re: rules: avoid traversing parent of every single device?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 22, 2009 at 16:15, Alan Jenkins <alan-jenkins@xxxxxxxxxxxxxx> wrote:
> I've been looking at what is responsible for all the path lookup activity in
> coldplug.  On my debian stable system, it looks like every device gets its
> parent looked up in sysfs.  I think this is due to SUBSYSTEMS matches.
>
> I see the udev default rules are different, but it looks like they still
> test for SUBSYSTEMS on every single device:
>
> SUBSYSTEMS=="scsi", ATTRS{type}=="1|8", GROUP="tape"
> SUBSYSTEMS=="scsi", ATTRS{type}=="4|5", GROUP="cdrom"
> SUBSYSTEMS=="scsi", ATTRS{type}=="0", GROUP="disk"
>
>
> Should we add SUBSYSTEM="scsi_generic" to these three rules?

Sounds good. I think the "tape" will need a match for the actual
scsi-tape devices too? The real "cdrom" and "disk" devices seems
covered by explicit rules.

Thanks,
Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux