From 7331ab55fc28ac03c18cd683b7748a07dbd63f0f Mon Sep 17 00:00:00 2001 From: Pozsár Balázs Date: Mon, 24 Sep 2012 02:39:09 +0100 Subject: 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. --- doc/coreutils.texi | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'doc') 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 -- cgit v1.2.3-54-g00ecf