diff options
author | Roman Rybalko <devel@romanr.info> | 2012-02-27 13:53:07 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2012-02-29 00:17:56 +0000 |
commit | 4e776faa8482ae630d2ea9bc767298e664f07ba9 (patch) | |
tree | 22c337b9f4986e7448ab952d1999d6ee5ca3cff6 /NEWS | |
parent | 697d00c321ed1a9610974f375e6146cb025f5198 (diff) | |
download | coreutils-4e776faa8482ae630d2ea9bc767298e664f07ba9.tar.xz |
dd: add support for the conv=sparse option
Notes:
Small seeks are not coalesced to larger ones,
like is done in cache_round() for example.
conv= is used rather then oflag= for FreeBSD compatibility.
* src/dd.c (final_op_was_seek): A new global boolean to flag
whether the final "write" was converted to a seek.
(usage): Describe the new conf=sparse option.
(iwrite): Convert a write of a NUL block to a seek if requested.
(do_copy): Initialize the output buffer to have a sentinel,
to allow for efficient testing for NUL output blocks.
If the last block in the file was converted to a seek,
then convert back to a write so the size is updated.
* NEWS: Mention the new feature.
* tests/dd/sparse: A new test for the feature.
* tests/Makefile.am: Reference the new test.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -7,6 +7,9 @@ GNU coreutils NEWS -*- outline -*- dd now accepts the count_bytes, skip_bytes iflags and the seek_bytes oflag, to more easily allow processing portions of a file. + dd now accepts the conv=sparse flag to attempt to create sparse + output, by seeking rather than writing to the output file. + split now accepts an optional "from" argument to --numeric-suffixes, which changes the start number from the default of 0. |