1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/udev
Peter Rajnoha 32ab91e528
udev: create /dev/disk/by-diskseq/<DISKSEQ> symlink for public DM devices
All block devices have a disk sequence number assigned (an ever-increasing 64 bit
sequence number) since kernel v5.15 (February 2021). The number is exported through
/sys/block/<disk>/diskseq property and also as DISKSEQ udev event variable.
The diskseq helps with referencing a device throughout its existence in
race-free way.

By default, the /usr/lib/udev/rules.d/60-persistent-storage.rules set
/dev/disk/by-diskseq/<diskseq> symlink for each block device. However,
these rules do not apply for DM devices because we manage the symlinks
ourselves in 13-dm-disk.rules where it properly follows the
DM_UDEV_DISABLE_DISK_RULES flag, among other things.

Add a rule to 13-dm-disk.rules to create the /dev/disk/by-diskseq/<diskseq>.
2024-12-09 13:17:46 +01:00
..
.gitignore gitignore: update 2022-09-07 15:00:15 +02:00
10-dm.rules.in Upstream db_persist udev rule from dracut 2024-03-25 08:04:00 +00:00
11-dm-lvm.rules.in udev: disable suffix handling 2024-06-25 23:18:07 +02:00
12-dm-permissions.rules udev: change action check from ACTION!="add|change" to ACTION=="remove" 2024-03-25 07:57:33 +00:00
13-dm-disk.rules.in udev: create /dev/disk/by-diskseq/<DISKSEQ> symlink for public DM devices 2024-12-09 13:17:46 +01:00
69-dm-lvm.rules.in udev: ignore LVs containing PVs 2024-02-08 14:51:46 -06:00
95-dm-notify.rules.in udev: udev rules cleanup 2012-06-27 12:11:56 +02:00
Makefile.in makefiles: avoid using # with awk 2024-04-08 14:52:23 +02:00