On Tue, Oct 22, 2013 at 08:42:19AM +0200, Bernhard Voelker wrote:
did you see the warning? I just saw it a second before your mail arrived. dd only issues that warning if count > 1.
I'll discuss that upstreams if this is an off-by-one, or intended.
When in doubt, look into the source. :-) In fact, dd only issues a warning about a short read if it is followed by a read which returns a positive (>0) value. This makes sense as the only way to distinguish a "natural" short read at the end of a file from a short read of the type we have with /dev/random is by checking whether the next read returns 0. With count=1, we have no way to distinguish these two cases unless we do another read() which is something dd definitely shouldn't do (or at least not by default). Michal Kubeček -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org