* Mathieu Malaterre <mathieu.malate...@gmail.com>, 2011-07-28 17:49:
For some reason the following command:

dd if=/dev/zero of=testfile_4G bs=4G count=1

produces a 2G file:

$ dd if=/dev/zero of=testfile_4G bs=4G count=1
0+1 records in
0+1 records out
2147479552 bytes (2.1 GB) copied, 64.1528 s, 33.5 MB/s

This happens because:

* "read() (and similar system calls) will transfer at most 0x7ffff000 (2,147,479,552) bytes".

* dd does not continue after a short read, unless you use iflag=fullblock.

--
Jakub Wilk

Reply via email to