[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dd bug in 4.0
From: |
Jim Meyering |
Subject: |
Re: dd bug in 4.0 |
Date: |
04 Mar 2001 04:00:56 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.99 |
Thanks for the report.
Are you sure there's a problem?
If so, please provide a small example demonstrating it.
And please use the latest test release:
ftp://alpha.gnu.org/gnu/fetish/
The latest test release seems to work properly:
$ printf 123456 | dd conv=noerror,sync ibs=5 obs=5 > /dev/null
1+1 records in
2+0 records out
The above is correct because `sync' directs dd to pad the final,
partial block of input (containing just `6') with NUL bytes, so it
outputs a total of 10 bytes or two full 5-byte records.
Now, if you remove the `sync', maybe you'll see what you expected:
$ printf 123456 | dd conv=noerror ibs=5 obs=5 > /dev/null
1+1 records in
1+1 records out
Tim Wright <address@hidden> wrote:
| Use of 'dd conv=noerror,sync' with a reasonably large blocksize (large enough
| to not be a clean multiple of the input size), generates an incorrect summary.
| The blocks out will report 'XXXXX+0' rather than '+1' indicating a partial
| block write.
...
- dd bug in 4.0, Tim Wright, 2001/03/02
- Re: dd bug in 4.0,
Jim Meyering <=