bug-coreutils
[Top][All Lists]
Advanced

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

Re: dd (coreutils) 5.97 used power of 10 not 2 for calculating MB


From: Paul Eggert
Subject: Re: dd (coreutils) 5.97 used power of 10 not 2 for calculating MB
Date: Tue, 23 Jan 2007 12:47:34 -0800
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Pádraig Brady <address@hidden> writes:

> There is support for binary multiples in dd,

Yes, but that's for the operands of dd, e.g., "dd bs=512M" talks about
a block size 512 * 1024 * 1024 bytes, as opposed to "dd bs=512MB"
which uses 512 * 1000 * 1000.  But Dat Head is asking for binary
multiples in the stderr messages, e.g.,

   $ dd bs=512M count=1024 if=/dev/zero of=/dev/null
   1024+0 records in
   1024+0 records out
   549755813888 bytes (550 GB) copied, 13.7008 s, 40.1 GB/s

Currently these messages always use powers of 10, not 2, even if the
block size and counts are powers of 2.  Dat Head wants that last line
to say "(512 GiB)" and "37.4 GiB/s".  That will require a new option,
I think.




reply via email to

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