docs: try to convince open(2) O_DIRECT rather than using raw device

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>
This commit is contained in:
Sami Kerola 2017-04-13 11:18:58 +01:00
parent 15a74f755a
commit abec3cb1de
No known key found for this signature in database
GPG Key ID: A9553245FDE9B739
1 changed files with 4 additions and 0 deletions

View 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