]> git.ipfire.org Git - thirdparty/coreutils.git/commit
doc: clarify dd sparse detection is by *output* block
authorKevin Locke <kevin@kevinlocke.name>
Thu, 23 May 2019 03:07:50 +0000 (21:07 -0600)
committerPádraig Brady <P@draigBrady.com>
Sun, 26 May 2019 11:53:26 +0000 (12:53 +0100)
commit3a87ad51240b593c79f06ca98ca38117908a78c8
treedbc85871d4aed369c83c2d4b8a38c0f3d87f9df6
parent4f38974aafb5318a236251656ef3425cc61b1217
doc: clarify dd sparse detection is by *output* block

The wording of the dd --help text suggests that output will be skipped
for sparse *input* blocks (i.e. that NUL-checking is done on input
blocks) while the code actually checks/skips all-NUL *output* blocks.[1]

* src/dd.c (usage): Update the --help text to clarify the above.
* tests/dd/sparse.sh: Ensure sparseness is controlled with obs.

[1]: https://superuser.com/a/1136358
src/dd.c
tests/dd/sparse.sh