Debian Bug report logs - #306200
lvm2: please use SI units

version graph

Package: lvm2; Maintainer for lvm2 is Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>; Source for lvm2 is src:lvm2.

Reported by: TazForEver@dlfp.org

Date: Sun, 24 Apr 2005 22:48:04 UTC

Severity: normal

Found in version 2.01.04-3

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>:
Bug#306200; Package lvm2. Full text and rfc822 format available.

Acknowledgement sent to TazForEver@dlfp.org:
New Bug report received and forwarded. Copy sent to Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Benoît Dejean <TazForEver@dlfp.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: lvm2: please use SI units
Date: Mon, 25 Apr 2005 00:42:42 +0200
Package: lvm2
Version: 2.01.04-3
Severity: important

The lvresize manpages says:

"A size suffix of M for megabytes, G for gigabytes or T for terabytes is optional."

it's unclear if M, G, T mean

a) 2^20B, 2^30B, 2^40B 
b) 10^6B, 10^9B, 10^12B

if (a), then the manpage should use SI units MiB, GiB and TiB.

lvdisplay --units is undocumented
 [--units hsbkmgtHKMGT] ? what are these units ? Does M stand for MB or MiB ?


The BIPM brochure says:

"These SI prefixes refer strictly to powers of 10. They should not be used to
indicate powers of 2 (for example, one kilobit represents 1000 bits and not 1024
bits)"

http://www1.bipm.org/utils/en/pdf/si-brochure.pdf §3.1

Please consider using [KMG]iB instead of [kMG]B

http://physics.nist.gov/cuu/Units/binary.html


Thanks.


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.11-powerpc
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8)

Versions of packages lvm2 depends on:
ii  debconf                     1.4.48       Debian configuration management sy
ii  libc6                       2.3.2.ds1-21 GNU C Library: Shared libraries an
ii  libdevmapper1.01            2:1.01.00-4  The Linux Kernel Device Mapper use
ii  lvm-common                  1.5.17       The Logical Volume Manager for Lin

-- debconf information:
  lvm2/snapshots:



Severity set to `normal'. Request was from Andres Salomon <dilinger@debian.org> to control@bugs.debian.org. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>:
Bug#306200; Package lvm2. Full text and rfc822 format available.

Acknowledgement sent to Daniel Kahn Gillmor <dkg-debian.org@fifthhorseman.net>:
Extra info received and forwarded to list. Copy sent to Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>. Full text and rfc822 format available.

Message #12 received at 306200@bugs.debian.org (full text, mbox):

From: Daniel Kahn Gillmor <dkg-debian.org@fifthhorseman.net>
To: 306200@bugs.debian.org, 306200-subscribe@bugs.debian.org
Subject: unit consistency in lvm
Date: Tue, 9 Jan 2007 22:53:24 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I agree that consistency and clarity of units is important in LVM and
any other block device management tool.  It's weird to see things
like:

monkey:~# vgs --units G vg_troop0
  VG       #PV #LV #SN Attr   VSize   VFree
  vg_troop0   1   0   0 wz--n- 750.16G 750.16G
monkey:~# lvcreate --size 700G --name home vg_troop0
  Insufficient free extents (178851) in volume group vg_troop0: 179200 required
monkey:~#

FWIW, the section on --units in "man 8 vgs" sounds really good:

   --units hsbkmgtHKMGT
          All  sizes  are  output  in these  units:  (h)uman-readable,
          (s)ectors,  (b)ytes, (k)ilobytes,  (m)egabytes, (g)igabytes,
          (t)erabytes.   Capitalise to  use multiples  of  1000 (S.I.)
          instead  of  1024.  Can  also  specify  custom (u)nits  e.g.
          --units 3M

If these units were used consistently across the entire lvm2 suite, it
would make the tools more accessible.  This may be more of a bug for
upstream, though.  i'm not sure.

Thanks for maintaining lvm for debian,

	--dkg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>

iD8DBQFFpGMriXTlFKVLY2URAtTdAJ4+kaSkGQW104Fa73U4572xrJYAMgCgjUd1
TQoiTaqEEQan7d7c9J0XHSk=
=iYcf
-----END PGP SIGNATURE-----



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Apr 21 16:51:24 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.