Skip to content

Commit

Permalink
Udev rules: replace deprecated $tempnode with $devnode
Browse files Browse the repository at this point in the history
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 openzfs#12302
  • Loading branch information
jgottula authored and behlendorf committed Aug 23, 2021
1 parent b068c77 commit 369cf0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion udev/rules.d/60-zvol.rules.in
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 369cf0b

Please sign in to comment.