From 4e73fea3e3b6fb721b91bb81e5357fb805eb590d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 22 Feb 2007 19:09:35 +0100 Subject: Honor dd's noatime flag if possible, even if not supported on build fs * doc/coreutils.texi (dd invocation): Warn that noatime might not be reliable. * src/dd.c (flags, usage): Look at O_NOATIME, not HAVE_WORKING_O_NOATIME, to decide whether to support the noatime flag, so that dd attempts O_NOATIME even if the build file system does not support it. Problem reported by Jim Meyering today in bug-coreutils. * tests/dd/misc: Generate a warning, not a failure, if noatime exists but fails. --- doc/coreutils.texi | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/coreutils.texi') diff --git a/doc/coreutils.texi b/doc/coreutils.texi index 1a2dba43e..04c1b4e1e 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -7442,6 +7442,8 @@ Use non-blocking I/O. @opindex noatime @cindex access time Do not update the file's access time. +Some older file systems silently ignore this flag, so it is a good +idea to test it on your files before relying on it. @item noctty @opindex noctty -- cgit v1.2.3-54-g00ecf