forked from opensvc/multipath-tools
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libmultipath: nvme: fix path detection for kernel 4.16
The path detection logic of the NVMe code relies on the "slaves" symlinks from NVMe subsys to controllers in sysfs, which have been removed in the 4.16 kernel. With this patch, we use the symlinks on the NVMe subsys level instead. Example: a multipathed NVMe subsystem with 2 controllers: /sys/devices/virtual/nvme-subsystem/nvme-subsys2/nvme2n1 /sys/devices/virtual/nvme-fabrics/ctl/nvme2/nvme2c6n1 /sys/devices/virtual/nvme-fabrics/ctl/nvme3/nvme2c8n1 The controllers are found from the subsystem like this: /sys/devices/virtual/nvme-subsystem/nvme-subsys2/nvme2 -> ../../nvme-fabrics/ctl/nvme2 /sys/devices/virtual/nvme-subsystem/nvme-subsys2/nvme3 -> ../../nvme-fabrics/ctl/nvme3 Signed-off-by: Martin Wilck <mwilck@suse.com>
- Loading branch information
Showing
1 changed file
with
127 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters