From: Alasdair G Kergon Date: Mon, 28 Sep 2009 13:49:06 +0100 Subject: [PATCH 2/3] differentiate between S.I. and binary units in output In-Reply-To: <1253979227-28051-2-git-send-email-impulze@impulze.org> References: <1253979227-28051-1-git-send-email-impulze@impulze.org> <1253979227-28051-2-git-send-email-impulze@impulze.org> Message-ID: <20090928124906.GD5351@agk-dp.fab.redhat.com> List-Id: To: lvm-devel@redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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.