xref: /freebsd/sys/contrib/openzfs/udev/rules.d/60-zvol.rules.in (revision 7cd22ac43418da08448d0bab1009ff3cbda85120)
1eda14cbcSMatt Macy# Persistent links for zvol
2eda14cbcSMatt Macy#
3eda14cbcSMatt Macy# persistent disk links: /dev/zvol/dataset_name
4*7cd22ac4SMartin Matuska#
5*7cd22ac4SMartin Matuska# NOTE: We used to also create an additional tree of zvol symlinks located at
6*7cd22ac4SMartin Matuska#       /dev/dataset_name (i.e. without the 'zvol' path component) for
7*7cd22ac4SMartin Matuska#       compatibility reasons. These are no longer created anymore, and should
8*7cd22ac4SMartin Matuska#       not be relied upon.
9*7cd22ac4SMartin Matuska#
10eda14cbcSMatt Macy
11*7cd22ac4SMartin MatuskaKERNEL=="zd*", SUBSYSTEM=="block", ACTION=="add|change", PROGRAM=="@udevdir@/zvol_id $devnode", SYMLINK+="zvol/%c"
12