Matching on the ata port number, which is an attribute that is not a direct ancestor

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

I am trying to figure out how to set up a rule, preferably using
information stored in the hwdb, to identify ata ports that are known
to be esata on specific hardware.  The problem seems to be that ata
exposes this information not in a direct ancestor of the block device
node, but off to the side.  For example, the block node is:

/devices/pci0000:00/0000:00:1f.2/ata1/host0/target0:0:0/0:0:0:0

But the ata port number is exposed in the attribute:

/devices/pci0000:00/0000:00:1f.2/ata1/ata_port/ata1/port_no

So how can I write a udev rule to match on a specific port_no, and
then add in the modalias for this specific controller?

Matching on ATTRS{ata_port/ata1/port_no} doesn't seem to work.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCgAGBQJTq1m0AAoJEI5FoCIzSKrw39wH/2cnCWPjpm1rFIVN5a/ufcm1
Ah3JsOw1GESdNMnUKcYYz1A56SXbTRKRitTNfm6/Gi91HPobdoauNhSQDQwpZZ4X
RpxrEUe2Cg/uZOPQ7QAMWQ8mPgXJ0jCcdnlO9iPzkYrEsW/CaK4UmUnqOIGYaeCm
ekA/Cz16ZMBxa4qqv2NFV+uuRfiXVJAuqoJykELeEu4zc0EiLw7veHXI66AO9HSv
kL+FRWyfH1cncfs7FmS/zLdt/fq8rYQtkWcOzCX/7xVCWJ2orI5lS9aJYQRrSrZb
Am3tpID6TjXwSRvc/6tP3KD6h67lP9bHgU82jq9sYVio+ehpTw3f41xx6rGMwDE=
=sU17
-----END PGP SIGNATURE-----
--
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