summaryrefslogtreecommitdiffstats
path: root/udev/rules.d/60-zvol.rules.in
diff options
context:
space:
mode:
Diffstat (limited to 'udev/rules.d/60-zvol.rules.in')
-rw-r--r--udev/rules.d/60-zvol.rules.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/udev/rules.d/60-zvol.rules.in b/udev/rules.d/60-zvol.rules.in
new file mode 100644
index 000000000..199f77e0c
--- /dev/null
+++ b/udev/rules.d/60-zvol.rules.in
@@ -0,0 +1,6 @@
+# Persistent links for zvol
+#
+# persistent disk links: /dev/zvol/dataset_name
+# also creates compatibilty symlink of /dev/dataset_name
+
+KERNEL=="zd*" SUBSYSTEM=="block" ACTION=="add|change" PROGRAM="@udevdir@/zvol_id $tempnode" SYMLINK+="zvol/%c %c"