summaryrefslogtreecommitdiffstats
path: root/udev
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2016-10-14 16:11:16 -0700
committerGitHub <[email protected]>2016-10-14 16:11:16 -0700
commitdabb6f4fab38f5a729e8241425a5394ae7fd96d4 (patch)
treeb8107bde4af50403c6136550d4f853a133ae160e /udev
parentb6ca6193f7678a9d8790f4319c982cc34b59f150 (diff)
Allow partition aliases in vdev_id.conf (#5266)
When pools are assembled from partitions, vdev_id.conf aliases do not work. The directory /dev/disk/by-vdev is not created because the associated udev rule for parsing vdev_id.conf is never called. Extend to logic to match "disk" and "partition". Patch-proposed-by: @sparksh Reviewed-by: Ned Bass <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #3859 Closes #5266
Diffstat (limited to 'udev')
-rw-r--r--udev/rules.d/69-vdev.rules.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/udev/rules.d/69-vdev.rules.in b/udev/rules.d/69-vdev.rules.in
index 5c2940af6..2b9e5d600 100644
--- a/udev/rules.d/69-vdev.rules.in
+++ b/udev/rules.d/69-vdev.rules.in
@@ -3,6 +3,7 @@
#
ENV{DEVTYPE}=="disk", IMPORT{program}="@udevdir@/vdev_id -d %k"
+ENV{DEVTYPE}=="partition", IMPORT{program}="@udevdir@/vdev_id -d %k"
KERNEL=="*[!0-9]", ENV{SUBSYSTEM}=="block", ENV{ID_VDEV}=="?*", SYMLINK+="$env{ID_VDEV_PATH}"
KERNEL=="*[0-9]", ENV{SUBSYSTEM}=="block", ENV{DEVTYPE}=="partition", ENV{ID_VDEV}=="?*", SYMLINK+="$env{ID_VDEV_PATH}-part%n"