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

Re: [lvm-devel] [PATCH 2/3] differentiate between S.I. and binary units in output



On Sat, Sep 26, 2009 at 05:33:46PM +0200, Daniel Mierswa wrote:
> For binary based uints:
>  Long output strings (unsed) will be Kibibyte, Mebibyte, etc.
>  Short output strings will be KiB, MiB, etc.
>  Unit output strings will be lower-cased: k, m, g, etc.
>  Sectors determined by division with 512 will be suffixed with s.
> For S.I. based units:
>  Long output strings (unused) will be Kilobyte, Megabyte, etc.
>  Short output strings will be kB, MB, GB, etc.
>  Unit output strings will be upper-cased: K, M, G, etc.
>  Sectors determined by division with 500 will be suffixed with S.

Bytes, Units and Sectors are special cases - in a separate group.
A sector is always 512 bytes.  I don't see any need to support 500-byte
sectors.

As with the last patch, I can't put this into RHEL5 so it needs to
be conditional (selectable at both compilation time and run time).

Alasdair.


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