]> err.no Git - util-linux/commitdiff
raw: add file with udev rule example
authorKarel Zak <kzak@redhat.com>
Fri, 26 Jan 2007 19:06:38 +0000 (20:06 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 26 Jan 2007 19:06:38 +0000 (20:06 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
example.files/udev-raw.rules [new file with mode: 0644]

diff --git a/example.files/udev-raw.rules b/example.files/udev-raw.rules
new file mode 100644 (file)
index 0000000..2279c91
--- /dev/null
@@ -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.