[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
dd or other bug?
From: |
qm <Brad Allen |
Subject: |
dd or other bug? |
Date: |
Tue, 13 Mar 2007 13:37:40 -0700 |
I don't have time to complete this right now; putting
|bfr inbetween the two fixes it and it makes my script work.
If I have time I can do this later.
Given the following test file named "test", whose
contents and size do not matter if size is greater than
1023, then we get:
while true; do dd if=test bs=1023 skip=1 2> /dev/null |
dd bs=32768 count=1 2>/dev/null|wc -c; done
the output is:
sometimes 1023, sometimes greater.
It should always be equal to the size of the file-1023 or 32768,
whichever is smaller.
I tried a number of different files for "if", and the results are the
same. I tried different blocksizes for the first value, and once
again the results are the same.
uname -a
Linux QM.DYNDNS.ORG 2.6.20-gentoo-r1ulmo-i #50 SMP PREEMPT Thu Mar 8
13:24:22 PST 2007 i686 Mobile Intel(R) Pentium(R) 4 CPU 2.80GHz
GenuineIntel GNU/Linux
dd --version
dd (coreutils) 6.4
glibc is 2.5
Linux Distribution Gentoo
-------------
dd verison 5.2.1 in Debian works fine.
Hmm ....
ok, well, then, I can start to determine the problem.
- dd or other bug?,
qm <Brad Allen <=