Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
udev: correctly handle partition openzfs#16 and later
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. Fixes: openzfs#15904 Signed-off-by: Fabian Grünbichler <[email protected]>
- Loading branch information