* Matching on the ata port number, which is an attribute that is not a direct ancestor
@ 2014-06-25 23:22 Phillip Susi
0 siblings, 0 replies; only message in thread
From: Phillip Susi @ 2014-06-25 23:22 UTC (permalink / raw)
To: linux-hotplug
-----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-----
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-06-25 23:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-25 23:22 Matching on the ata port number, which is an attribute that is not a direct ancestor Phillip Susi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).