Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
linux-4.14.13: Build out of tree aacraid module
Thomas reports the problem below [1]. > further testing of the stock aacraid-driver yielded some deficits in > the sys-fs representation. Aparently it doesn't link the disk devices > to enclosure slots, a thing that the off-tree microsemi driver does > (and the LSI driver also, so i deem it's 'good-practice' in modern HBA > drivers). Indeed it doesn't affect the functionality, but it hampers > maintenance and client-tools a bit more than just a bit. > Here is the location info of the missing sys-fs parts > short way, where as the `device` part is missing: > ``` > #ls -la /sys/class/enclosure/7:0:80:0/Disk001 > drwxr-xr-x 3 root system 0 Jan 10 13:08 . > drwxr-xr-x 19 root system 0 Jan 10 13:07 .. > -rw-r--r-- 1 root system 4096 Jan 11 12:56 active > lrwxrwxrwx 1 root system 0 Jan 10 13:08 device -> > ../../../../../../../port-7:1/end_device-7:1/target7:0:65/7:0:65:0 > -rw-r--r-- 1 root system 4096 Jan 11 12:56 fault > -rw-r--r-- 1 root system 4096 Jan 11 12:56 locate > drwxr-xr-x 2 root system 0 Jan 11 12:56 power > -rw-r--r-- 1 root system 4096 Jan 11 12:56 power_status > -r--r--r-- 1 root system 4096 Jan 11 12:56 slot > -rw-r--r-- 1 root system 4096 Jan 11 12:56 status > -r--r--r-- 1 root system 4096 Jan 11 12:56 type > -rw-r--r-- 1 root system 4096 Jan 11 12:56 uevent > ``` > The true location would be: > ``` > /sys/devices/pci0000:00/0000:00:03.0/0000:04:00.0/host7/port-7:16/end_device-7:16/target7:0:80/7:0:80:0/enclosure/7:0:80:0/Disk001 > ``` [1] #571
- Loading branch information