[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dd bug
From: |
Andreas Schwab |
Subject: |
Re: dd bug |
Date: |
Wed, 24 Sep 2003 23:16:53 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux) |
Paul Eggert <address@hidden> writes:
> Buciuman Adrian <address@hidden> writes:
>
>> read(0, "1 "..., 737280) = 36864
>> write(1, "1 "..., 737280) = 737280
>> read(0, 0x4015a000, 737280) = -1 EIO (Input/output error)
>
> Apparently the first "read" found the I/O error, and decided to return
> the bytes that it found. The second "read" then reported the I/O error.
> I didn't expect this pattern; I thought the first "read" would fail.
That would mean that the kernel would need to discard what it already
sucessfully read, with no way to recover the data (it can't put it back
either). There is no way to both return some data and report an error
with the same read call.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
- dd bug, Buciuman Adrian, 2003/09/16
- Re: dd bug, Paul Eggert, 2003/09/17
- Re: dd bug, Buciuman Adrian, 2003/09/17
- Re: dd bug, Paul Eggert, 2003/09/17
- Re: dd bug, Buciuman Adrian, 2003/09/18
- Re: dd bug, Jim Meyering, 2003/09/20
- Re: dd bug, Paul Eggert, 2003/09/22
- Re: dd bug, Buciuman Adrian, 2003/09/24
- Re: dd bug, Paul Eggert, 2003/09/24
- Re: dd bug,
Andreas Schwab <=