From: Karel Zak Date: Fri, 26 Jan 2007 19:06:38 +0000 (+0100) Subject: raw: add file with udev rule example X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6b6c3e3ebcf84ba71f91a84a43eacb8c67e115e;p=util-linux raw: add file with udev rule example Signed-off-by: Karel Zak --- diff --git a/example.files/udev-raw.rules b/example.files/udev-raw.rules new file mode 100644 index 00000000..2279c911 --- /dev/null +++ b/example.files/udev-raw.rules @@ -0,0 +1,11 @@ +# This file and interface are deprecated. +# Applications needing raw device access should open regular +# block devices with O_DIRECT. +# +# Enter raw device bindings here. +# +# An example would be: +# ACTION=="add", KERNEL=="sda", RUN+="/bin/raw /dev/raw/raw1 %N" +# to bind /dev/raw/raw1 to /dev/sda, or +# ACTION=="add", ENV{MAJOR}=="8", ENV{MINOR}=="1", RUN+="/bin/raw /dev/raw/raw2 %M %m" +# to bind /dev/raw/raw2 to the device with major 8, minor 1.