2012-04-21 04:32:30 +04:00
|
|
|
#
|
2012-11-29 23:08:37 +04:00
|
|
|
# @udevdir@/rules.d/69-vdev.rules
|
2012-04-21 04:32:30 +04:00
|
|
|
#
|
|
|
|
|
2012-11-12 21:34:45 +04:00
|
|
|
ENV{DEVTYPE}=="disk", IMPORT{program}="@udevdir@/vdev_id -d %k"
|
2016-10-15 02:11:16 +03:00
|
|
|
ENV{DEVTYPE}=="partition", IMPORT{program}="@udevdir@/vdev_id -d %k"
|
2012-04-21 04:32:30 +04:00
|
|
|
|
|
|
|
KERNEL=="*[!0-9]", ENV{SUBSYSTEM}=="block", ENV{ID_VDEV}=="?*", SYMLINK+="$env{ID_VDEV_PATH}"
|
2019-12-18 04:50:20 +03: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 04:32:30 +04: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 04:27:49 +03: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}"
|