How to map ata_link to physical link and ata_port to physical port

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

 



Hi hackers,

In our internal usage, we want to map the disk in system like
sd{a,b,c} to physical disk slot. When the disk is attached to LSI HBA
card, we find that we can rely on the phy attribute of the disk to
find the slot since this attribute does not change no matter which
kind of disks we attach or what order we attach the disks. But when
doing this for AHCI, we do not find an attribute that we can rely on
it to map the disk to slot. No matter ata_port number or ata_host
number, when we changed the order we attached the disks to slots, they
changed.

So I want to know is there some attribute we can get from AHCI that
map the logical disk to physical slot?

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


[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux