On 03/23/2012 10:56 AM, Jim Meyering wrote: > +# Setup for block size tests: create a 3MiB file with a 1MiB > +# stretch of NUL bytes in the middle. > +rm -f file.in > +dd if=/dev/urandom of=file.in iflag=fullblock bs=1M count=3 || fail=1 > +dd if=/dev/zero of=file.in conv=notrunc bs=1M count=1 || fail=1
The NUL bytes are not in the middle: $ hexdump file.in | head -n 4 0000000 0000 0000 0000 0000 0000 0000 0000 0000 * 0100000 f105 7956 e6ce e161 b166 0e84 208a 40ee 0100010 1531 ac0d 1c49 78a9 7aed 7f56 9161 4f25 Did you mean seek=1M? Have a nice day, Berny
