GNU bug report logs - #34923
dd: add messages about IO errors

Previous Next

Package: coreutils;

Reported by: "Daniel A. Gauthier" <fractal2010 <at> fractals.net>

Date: Wed, 20 Mar 2019 01:55:02 UTC

Severity: wishlist

Tags: notabug

Full log


Message #8 received at 34923 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: "Daniel A. Gauthier" <fractal2010 <at> fractals.net>, 34923 <at> debbugs.gnu.org
Subject: Re: bug#34923: Message/race bug in 'dd'
Date: Tue, 19 Mar 2019 20:44:42 -0700
[Message part 1 (text/plain, inline)]
Daniel A. Gauthier wrote:
> NOTICE that the "+nn" value on the line is always one off.  It says +0
> after the first error, +1 after the second, etc. until the correct count
> of error/short blocks is given at the end.

The count is supposed to just count short blocks, not errors. This is a POSIX 
requirement. I installed the attached documentation patch to try to make this 
clearer.

Perhaps dd should output a separate line to stderr that summaries I/O errors; it 
could do that without violating POSIX.
[0001-dd-improve-doc-of-stderr-output.patch (text/x-patch, attachment)]

This bug report was last modified 6 years and 144 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.