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
..
2009-11-06 16:54:12 +00:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2009-08-25 09:21:00 +02:00
2011-01-01 22:16:47 +01:00
2011-01-07 02:09:32 +00:00
2011-01-01 22:16:47 +01:00
2011-01-07 02:09:32 +00:00
2011-01-07 02:09:32 +00:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-02-11 00:13:31 +00:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2008-11-20 10:21:52 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-02-07 09:25:51 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-03-05 02:33:53 +00:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-03-03 09:05:44 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-02-04 15:01:39 +01:00
2011-01-31 13:42:49 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2005-07-18 07:52:37 +00:00
2011-01-30 20:44:11 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-13 17:28:36 +00:00
2011-01-29 23:39:16 +00:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-30 20:44:11 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-07 11:20:48 +00:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-14 18:06:41 +00:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-11 11:48:53 -07:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-14 18:06:41 +00:00
2011-01-01 22:16:47 +01:00
2011-02-03 10:19:34 +00:00
2011-01-24 10:02:22 +01:00
2011-01-01 22:16:47 +01:00
2011-02-18 23:31:29 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-13 17:28:36 +00:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-24 10:02:19 +01:00
2011-01-30 20:44:12 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2007-07-10 19:00:00 +02:00
2007-07-10 19:00:00 +02:00
2011-01-01 22:16:47 +01:00
2007-07-10 19:00:00 +02:00
2011-01-01 22:16:47 +01:00
2011-01-17 19:07:58 +01:00
2011-01-01 22:16:47 +01:00
2011-02-14 21:05:55 -08:00
2011-01-01 22:16:47 +01:00
2011-03-03 09:05:44 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00
2011-01-01 22:16:47 +01:00