Tell in manual page that one should use open(2) O_DIRECT flag rather than raw device. Signed-off-by: Sami Kerola <kerolasa@xxxxxx> --- disk-utils/raw.8 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/disk-utils/raw.8 b/disk-utils/raw.8 index 717f4ef1b..5d04aa226 100644 --- a/disk-utils/raw.8 +++ b/disk-utils/raw.8 @@ -88,6 +88,13 @@ 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 +Kernel developers consider raw driver deprecated. Applications should +preferably +.BR open (2) +the device, such as /dev/sda1, with the O_DIRECT flag. See also +https://lkml.\:org/lkml\:/2007/5\:/13/92 and +https://lkml.\:org/lkml\:/2007/5\:/14/515 mails. .SH AUTHOR Stephen Tweedie (sct@xxxxxxxxxx) .SH AVAILABILITY -- 2.12.2 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html