GNU bug report logs -
#28432
dd: warn about partial read on final iread
Previous Next
To reply to this bug, email your comments to 28432 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#28432
; Package
coreutils
.
(Tue, 12 Sep 2017 15:55:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Barry Handelman <barry.handelman <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Tue, 12 Sep 2017 15:55:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
The iread function in dd.c issues a warning if the previous read was short,
suggesting that you use iflag=fullblock
However, the warning is issued when the previous call to iread was partial,
so if only the final read was short then no warning is issued.
Importantly, this will always be the case when there was only one read, and
it was partial.
I'd suggest that if the strategy of warning on subsequent reads is to be
used, the warning routine should be run once again after the final read.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#28432
; Package
coreutils
.
(Thu, 14 Sep 2017 01:12:03 GMT)
Full text and
rfc822 format available.
Message #8 received at 28432 <at> debbugs.gnu.org (full text, mbox):
On 12/09/17 08:51, Barry Handelman wrote:
> The iread function in dd.c issues a warning if the previous read was short,
> suggesting that you use iflag=fullblock
>
> However, the warning is issued when the previous call to iread was partial,
> so if only the final read was short then no warning is issued.
> Importantly, this will always be the case when there was only one read, and
> it was partial.
>
> I'd suggest that if the strategy of warning on subsequent reads is to be
> used, the warning routine should be run once again after the final read.
The current approach was discussed at https://bugs.gnu.org/7362
A short read as the last read would be a common situation though?
You're specifically looking for the following to warn?
(echo; sleep 1; echo) | dd count=1 bs=512
That may be a bit aggressive as that could be used to read
the current data available, up to a specified max.
cheers,
Pádraig.
Severity set to 'wishlist' from 'normal'
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Tue, 30 Oct 2018 01:21:02 GMT)
Full text and
rfc822 format available.
Changed bug title to 'dd: warn about partial read on final iread' from 'dd doesn't warn about partial read on final call to iread'
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Tue, 30 Oct 2018 01:21:02 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 320 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.