dd: new option, status=none to suppress output statistics
authorPozsár Balázs <pozsy@uhulinux.hu>
Mon, 24 Sep 2012 01:39:09 +0000 (02:39 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 24 Sep 2012 14:14:23 +0000 (15:14 +0100)
commit7331ab55fc28ac03c18cd683b7748a07dbd63f0f
treeef1b7388c8698720657d5a60ef0c9a20c7f1b87d
parent2dad87f6415ec68564e934ace33496db1abc68c7
dd: new option, status=none to suppress output statistics

* src/dd.c (STATUS_NONE): A new bitmask combining all STATUS_
options, thus used to suppress all informational output.
(struct symbol_value statuses): Expose the "none" option,
corresponding to the STATUS_NONE bitmask above.
(print_stats): Return early if STATUS_NONE is specified.
Also move the call to gethrxtime() down so that it's only
called when needed.
(usage): Describe the new options.
* doc/coreutils.texi (dd invocation): Likewise.
* NEWS: Mention the new feature.
* tests/dd/misc.sh: Ensure the new option works.
NEWS
doc/coreutils.texi
src/dd.c
tests/dd/misc.sh