]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev-rules: fix nvme symlink creation on namespace changes
authorThomas Blume <Thomas.Blume@suse.com>
Thu, 2 Mar 2023 11:06:13 +0000 (12:06 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 21 Mar 2023 14:46:45 +0000 (15:46 +0100)
commitc5ba7a2a4dd19a2d31b8a9d52d3c4bdde78387f0
treec2e42f6dc23bcbc030ecceb404988d22d45f1f67
parentaea3ca36135aeb74ea38e7538c710d92b37f479d
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.
rules.d/60-persistent-storage.rules.in
test/units/testsuite-64.sh