eudev-project / eudev

Repository for eudev development
GNU General Public License v2.0
529 stars 144 forks source link

udev/path_id: introduce support for NVMe devices #272

Closed mscdex closed 10 months ago

mscdex commented 10 months ago

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>
bbonev commented 10 months ago

Thanks for your contribution. And happy new year :)