[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug: dd copies a random number of bytes

From: Jim Meyering
Subject: Re: bug: dd copies a random number of bytes
Date: Mon, 23 Feb 2009 20:21:14 +0100

Robb Matzke wrote:

> Ah, thanks. I get it now. The full and partial blocks do indeed always add
> up to what I would expect. It might be good if this were explicit in the man
> page

Documentation patches are always welcome.
In case you're interested, see

    coreutils contribution/style guidelines

> I was expecing dd to try harder to fill its buffer each time no matter
> how large a value for "bs=N".

As of coreutils-7.0, you can give GNU dd the iflag=fullblock option:

    dd accepts iflag=fullblock to make it accumulate full input blocks.
    With this new option, after a short read, dd repeatedly calls read,
    until it fills the incomplete block, reaches EOF, or encounters an error.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]