On Sat, Dec 6, 2008 at 11:48 AM, Eric Blake <[EMAIL PROTECTED]> wrote:
> All right - now we're getting somewhere.  Since other implementations
> already provide -g, that is a strong argument for us adopting it.  But
> before GNU coreutils implements -g, we need to determine whether the
> FreeBSD uses 1G (1024^3, or 2^30) or 1GB (1000^3, or 10^9) (I'm hoping 1G,
> as that would be more consistent with our existing -m as 1M, not 1MB).
> Does their man-page clarify anything?


FreeBSD 6.2:
     -g      Use 1073741824-byte (1-Gbyte) blocks rather than the default.
             Note that this overrides the BLOCKSIZE specification from the
             environment.

NetApp ONTAP 7.2.5.1:
       The  -h option scales the units of each size-related field
       to be KB, MB, GB, or TB, whichever is most appropriate for
       the value being displayed.  The -k, -m, -g, and -t options
       scale  each  size-related  field  of  the  output  to   be
       expressed in kilobytes, megabytes, gigabytes, or terabytes
       respectively.  Unit values are based  on  powers  of  two.
       For example, one megabyte is equal to 1,048,576 bytes.

AIX doesn't specify a number in -g:
       -g
            Displays statistics in units of GB blocks. The output values for
            the file system statistics would be in floating point numbers as
            value of each unit in bytes is significantly high.
but it DOES in -k:
       -k
            Displays statistics in units of 1024-byte blocks.

So, it looks to be 2's based everywhere I have to refer against.


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to