Files
coreutils/src
Pádraig Brady 5f3115535b dd: add a flag to discard cached data
* src/dd.c (FFS_MASK): A new macro (Find First Set) refactored
from the following enum as it's now used twice.
(usage): Mention the new 'nocache' flag.
(cache_round): A new function to help ignore requests
to drop cache, that are less than page_size.
(invalidate_cache): A new function to call posix_fadvise()
with the appropriate offset and length.  Note we don't
use fdadvise() so we can detect errors when count=0.
(dd_copy): Call invalidate_cache() for the portions read.
(iwrite): Likewise for the portions written.
(main): Call invalidate_cache for page_size slop or
for full file when count=0.
* cfg.mk (sc_dd_O_FLAGS): Adjust to pass.
* doc/coreutils.texi (dd invocation): Describe the 'nocache' flag,
and give some examples of how it can be used.
* tests/dd/nocache: A new test.
* tests/Makefile.am: Reference the new test.
* NEWS: Mention the new feature.
2011-03-05 02:33:53 +00:00
..
2008-11-20 10:21:52 +01:00
2011-03-05 02:33:53 +00:00
2011-03-03 09:05:44 +01:00
2005-07-18 07:52:37 +00:00
…
…
…
…
2007-07-10 19:00:00 +02:00
2007-07-10 19:00:00 +02:00
2007-07-10 19:00:00 +02:00
2011-02-14 21:05:55 -08:00
2011-03-03 09:05:44 +01:00