This is a commit from upstream to add /dev/disk/by-path symlinks for nvme devices. I could not get the original commit to apply (at all), so I copied the changes manually and retained the original commit metadata. I verified the changes with an nvme m.2 storage device. Original commit message is as-is below:
udev/path_id: introduce support for NVMe devices
This appends the nvme name and namespace identifier attribute the the
PCI path for by-path links. Symlinks like the following are now present:
lrwxrwxrwx. 1 root root 13 Sep 16 12:12 pci-0000:01:00.0-nvme-1 -> ../../nvme0n1
lrwxrwxrwx. 1 root root 15 Sep 16 12:12 pci-0000:01:00.0-nvme-1-part1 -> ../../nvme0n1p1
Cc: Michal Sekletar <sekletar.m@gmail.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
This is a commit from upstream to add /dev/disk/by-path symlinks for nvme devices. I could not get the original commit to apply (at all), so I copied the changes manually and retained the original commit metadata. I verified the changes with an nvme m.2 storage device. Original commit message is as-is below: