aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Gottula <justin@jgottula.com>2021-06-30 01:52:33 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2021-07-02 20:09:09 +0000
commit17c794e7b0723b1f90229771ddf1dc2ac227f224 (patch)
tree49ce6c3ba7405bd51b33f14c9eec50c521910611
parenta5398f8782ebc22930cfbad846decaeb17570e86 (diff)
downloadsrc-17c794e7b0723b1f90229771ddf1dc2ac227f224.tar.gz
src-17c794e7b0723b1f90229771ddf1dc2ac227f224.zip
Udev rules: replace deprecated $tempnode with $devnode
The $tempnode substitution is so old that it's not even mentioned in the man page anymore. It is still technically supported by udev, but with plenty of "deprecated" comments surrounding it. The preferred modern equivalent of $tempnode is $devnode (or alternatively, %N). Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Pavel Zakharov <pavel.zakharov@delphix.com> Signed-off-by: Justin Gottula <justin@jgottula.com> Closes #12302
-rw-r--r--udev/rules.d/60-zvol.rules.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/rules.d/60-zvol.rules.in b/udev/rules.d/60-zvol.rules.in
index 4447a2538500..5e1829029c6b 100644
--- a/udev/rules.d/60-zvol.rules.in
+++ b/udev/rules.d/60-zvol.rules.in
@@ -3,4 +3,4 @@
# persistent disk links: /dev/zvol/dataset_name
# also creates compatibility symlink of /dev/dataset_name
-KERNEL=="zd*", SUBSYSTEM=="block", ACTION=="add|change", PROGRAM="@udevdir@/zvol_id $tempnode", SYMLINK+="zvol/%c %c"
+KERNEL=="zd*", SUBSYSTEM=="block", ACTION=="add|change", PROGRAM="@udevdir@/zvol_id $devnode", SYMLINK+="zvol/%c %c"