2012-04-21 00:32:30 +00:00
|
|
|
#
|
2012-11-29 19:08:37 +00:00
|
|
|
# @udevdir@/rules.d/69-vdev.rules
|
2012-04-21 00:32:30 +00:00
|
|
|
#
|
|
|
|
|
2012-11-12 17:34:45 +00:00
|
|
|
ENV{DEVTYPE}=="disk", IMPORT{program}="@udevdir@/vdev_id -d %k"
|
2016-10-14 23:11:16 +00:00
|
|
|
ENV{DEVTYPE}=="partition", IMPORT{program}="@udevdir@/vdev_id -d %k"
|
2012-04-21 00:32:30 +00:00
|
|
|
|
|
|
|
KERNEL=="*[!0-9]", ENV{SUBSYSTEM}=="block", ENV{ID_VDEV}=="?*", SYMLINK+="$env{ID_VDEV_PATH}"
|
2019-12-18 01:50:20 +00:00
|
|
|
KERNEL=="nvme*[0-9]n*[0-9]", ENV{SUBSYSTEM}=="block", ENV{DEVTYPE}=="disk", ENV{ID_VDEV}=="?*", SYMLINK+="$env{ID_VDEV_PATH}"
|
2012-04-21 00:32:30 +00:00
|
|
|
KERNEL=="*[0-9]", ENV{SUBSYSTEM}=="block", ENV{DEVTYPE}=="partition", ENV{ID_VDEV}=="?*", SYMLINK+="$env{ID_VDEV_PATH}-part%n"
|
|
|
|
KERNEL=="dm-[0-9]*", ENV{SUBSYSTEM}=="block", ENV{ID_VDEV}=="?*", SYMLINK+="$env{ID_VDEV_PATH}"
|
2018-12-15 01:27:49 +00:00
|
|
|
|
|
|
|
# Enclosure device symlink rules
|
|
|
|
ENV{SUBSYSTEM}=="scsi_generic", IMPORT{program}="@udevdir@/vdev_id -e"
|
|
|
|
ENV{SUBSYSTEM}=="scsi_generic", ENV{ID_ENCLOSURE}=="?*", SYMLINK+="$env{ID_ENCLOSURE_PATH}"
|