summaryrefslogtreecommitdiffstats
path: root/test/units/testsuite-64.sh
diff options
context:
space:
mode:
authorThomas Blume <Thomas.Blume@suse.com>2023-03-02 12:06:13 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-03-21 15:46:45 +0100
commitc5ba7a2a4dd19a2d31b8a9d52d3c4bdde78387f0 (patch)
treec2e42f6dc23bcbc030ecceb404988d22d45f1f67 /test/units/testsuite-64.sh
parentlock-util: Add make_lock_file_at() (diff)
downloadsystemd-c5ba7a2a4dd19a2d31b8a9d52d3c4bdde78387f0.tar.xz
systemd-c5ba7a2a4dd19a2d31b8a9d52d3c4bdde78387f0.zip
udev-rules: fix nvme symlink creation on namespace changes
The nvme by-id symlink changes to the latest namespace when a new namespace gets added, for example by connecting multiple NVMe/TCP host controllers via nvme connect-all. That is incorrect for persistent device links. The persistent symbolic device link should continue to point to the same NVMe namespace throughout the lifetime of the current boot. Therefore the namespace id needs to be added to the link name.
Diffstat (limited to 'test/units/testsuite-64.sh')
-rwxr-xr-xtest/units/testsuite-64.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/units/testsuite-64.sh b/test/units/testsuite-64.sh
index fbab282334..03d2fcb4ef 100755
--- a/test/units/testsuite-64.sh
+++ b/test/units/testsuite-64.sh
@@ -182,6 +182,8 @@ testcase_nvme_subsystem() {
local expected_symlinks=(
# Controller(s)
/dev/disk/by-id/nvme-QEMU_NVMe_Ctrl_deadbeef
+ /dev/disk/by-id/nvme-QEMU_NVMe_Ctrl_deadbeef_16
+ /dev/disk/by-id/nvme-QEMU_NVMe_Ctrl_deadbeef_17
# Shared namespaces
/dev/disk/by-path/pci-*-nvme-16
/dev/disk/by-path/pci-*-nvme-17