summaryrefslogtreecommitdiffstats
path: root/example.files/udev-raw.rules
diff options
context:
space:
mode:
authorKarel Zak2007-01-26 20:06:38 +0100
committerKarel Zak2007-01-26 20:06:38 +0100
commitb6b6c3e3ebcf84ba71f91a84a43eacb8c67e115e (patch)
tree7d8b882ec574fcc4adfe2bc301ebea014d1920ce /example.files/udev-raw.rules
parentraw: move the raw command to /sbin (diff)
downloadkernel-qcow2-util-linux-b6b6c3e3ebcf84ba71f91a84a43eacb8c67e115e.tar.gz
kernel-qcow2-util-linux-b6b6c3e3ebcf84ba71f91a84a43eacb8c67e115e.tar.xz
kernel-qcow2-util-linux-b6b6c3e3ebcf84ba71f91a84a43eacb8c67e115e.zip
raw: add file with udev rule example
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'example.files/udev-raw.rules')
-rw-r--r--example.files/udev-raw.rules11
1 files changed, 11 insertions, 0 deletions
diff --git a/example.files/udev-raw.rules b/example.files/udev-raw.rules
new file mode 100644
index 000000000..2279c9110
--- /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.