]> git.proxmox.com Git - pve-storage.git/commit - PVE/Diskmanage.pm
Fix #2020: use /sys to map nvmeXnY to nvmeX
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 10 Dec 2018 13:17:06 +0000 (14:17 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 10 Dec 2018 13:54:11 +0000 (14:54 +0100)
commitc3442aa5546b029a524928d10c7ecabe0024c137
treeb0fe4513561574b1f24eaa298e7ee21032868aed
parentd35a0b4b62c328eba972e65c4480f33ed0063d2d
Fix #2020: use /sys to map nvmeXnY to nvmeX

`nvmeX` devices nodes are apparently allocated independently
from their namespace block devices `nvmeXnY` and therefore
they are not strictly related by name. For instance:
  $ readlink /sys/block/nvme0n1/device
  ../../nvme1
  $ readlink /sys/block/nvme1n1/device
  ../../nvme0

Here /dev/nvme0n1 is the first namespace of /dev/nvme1 while
/dev/nvme1n1 is the first namespace of /dev/nvme0.

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
PVE/Diskmanage.pm
test/disk_tests/nvme_smart/nvme0/model [new file with mode: 0644]
test/disk_tests/nvme_smart/nvme0n1/device [new symlink]
test/disk_tests/nvme_smart/nvme0n1/device/model [deleted file]