summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2016-01-11 22:31:45 +0000
committerPádraig Brady <P@draigBrady.com>2016-01-13 11:16:39 +0000
commit6ceb7ef87fdf138f0553f32a95567920cc51ae1a (patch)
tree05ebd561ad09e7458eeec20fc5dc02a77098fe12 /src
parenta0c5313d60703c480014bfd810bf8f1cf9903299 (diff)
downloadcoreutils-6ceb7ef87fdf138f0553f32a95567920cc51ae1a.tar.xz
doc: suggest dd "sync" flag to maximize "nocache" effectiveness
doc/coreutils.texi (dd invocation): Add oflag=sync to the streaming example. Also reference the "direct" flag. Mention this is only a request to the system. * src/dd.c (usage): Mention the "sync" flag along with "nocache". Also mention that it's only a request to drop the cache. * THANKS.in: Add reporter Francois Rigault.
Diffstat (limited to 'src')
-rw-r--r--src/dd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dd.c b/src/dd.c
index d5d01f38a..440950ab7 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -632,7 +632,8 @@ Each FLAG symbol may be:\n\
fputs (_(" noatime do not update access time\n"), stdout);
#if HAVE_POSIX_FADVISE
if (O_NOCACHE)
- fputs (_(" nocache discard cached data\n"), stdout);
+ fputs (_(" nocache Request to drop cache. See also oflag=sync\n"),
+ stdout);
#endif
if (O_NOCTTY)
fputs (_(" noctty do not assign controlling terminal from file\n"),