]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
docs: try to convince open(2) O_DIRECT rather than using raw device
authorSami Kerola <kerolasa@iki.fi>
Thu, 13 Apr 2017 10:18:58 +0000 (11:18 +0100)
committerSami Kerola <kerolasa@iki.fi>
Tue, 2 May 2017 22:22:04 +0000 (23:22 +0100)
Tell in manual page that one should use open(2) O_DIRECT flag rather than
raw device.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
disk-utils/raw.8

index 717f4ef1bb51d2ea3fb26c40452ce4b41de3e416..5a3b96e3ce6f3ba7e1c668dae8249be757a142f4 100644 (file)
@@ -88,6 +88,10 @@ device buffer cache.  If you use raw I/O to overwrite data already in
 the buffer cache, the buffer cache will no longer correspond to the
 contents of the actual storage device underneath.  This is deliberate,
 but is regarded either a bug or a feature depending on who you ask!
+.SH NOTES
+Rather than using raw devices applications should prefer
+.BR open (2)
+devices, such as /dev/sda1, with the O_DIRECT flag.
 .SH AUTHOR
 Stephen Tweedie (sct@redhat.com)
 .SH AVAILABILITY