diff options
author | Pozsár Balázs <pozsy@uhulinux.hu> | 2012-09-24 02:39:09 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2012-09-24 15:14:23 +0100 |
commit | 7331ab55fc28ac03c18cd683b7748a07dbd63f0f (patch) | |
tree | ef1b7388c8698720657d5a60ef0c9a20c7f1b87d /doc | |
parent | 2dad87f6415ec68564e934ace33496db1abc68c7 (diff) | |
download | coreutils-7331ab55fc28ac03c18cd683b7748a07dbd63f0f.tar.xz |
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.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/coreutils.texi | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi index c0abd7fa1..d5d72208a 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -8115,10 +8115,25 @@ of everything until the end of the file. if @samp{iflag=count_bytes} is specified, @var{n} is interpreted as a byte count rather than a block count. -@item status=noxfer +@item status=@var{which} @opindex status -Do not print the overall transfer rate and volume statistics -that normally make up the third status line when @command{dd} exits. +Transfer information is normally output to stderr upon +receipt of the @samp{INFO} signal or when @command{dd} exits. +Specifying @var{which} will identify which information to suppress. + +@table @samp + +@item noxfer +@opindex noxfer @r{dd status=} +Do not print the transfer rate and volume statistics +that normally make up the last status line. + +@item none +@opindex none @r{dd status=} +Do not print any informational messages to stderr. +Error messages are output as normal. + +@end table @item conv=@var{conversion}[,@var{conversion}]@dots{} @opindex conv |