]> git.proxmox.com Git - zfsonlinux.git/commit - debian/patches/series
fix #5288: cherry-pick fix for udev-partition links > 16
authorStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 6 Mar 2024 13:24:36 +0000 (14:24 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 11 Mar 2024 12:44:37 +0000 (13:44 +0100)
commitb48cfd2b15c79485c98489cea2f8f30d402419a8
treebd2287b2836869e1b44c58320e16d81e1f53c476
parenta5e02510155785b9cdefc16c5aca1a75419d2712
fix #5288: cherry-pick fix for udev-partition links > 16

If a zvol has more than 15 partitions, the minor device number
exhausts the slot count reserved for partitions next to the zvol
itself. As a result, the minor number cannot be used to determine the
partition number for the higher partition, and doing so results in
wrong named symlinks being generated by udev.

Since the partition number is encoded in the block device name anyway,
let's just extract it from there instead.

For upstream issue and PR discussion see:
https://github.com/openzfs/zfs/pull/15970
https://github.com/openzfs/zfs/issues/15904

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
debian/patches/0012-udev-correctly-handle-partition-16-and-later.patch [new file with mode: 0644]
debian/patches/series