Public bug reported:

The man page for lvextend gives these instructions for the -L option:

       -L, --size [+]LogicalVolumeSize[bBsSkKmMgGtTpPeE]
              Extend  or  set the logical volume size in units of megabytes.  A 
size suffix of M for megabytes, G for gigabytes, T for terabytes, P
              for petabytes or E for exabytes is optional.  With the + sign the 
value is added to the actual size of the logical volume and without
              it, the value is taken as an absolute one.

By megabyte, does the man page mean 1024 * 1024 bytes, or does it
1000000 bytes?

Let's look at lvs's man page:

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

This is less confusing, but still so. Sure a lower-case b is a bit, and
an upper-case B is a byte? Surely k is a kibibyte, and K is a kilobyte?

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: lvm2 2.02.95-4ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-18.29-generic 3.5.7
Uname: Linux 3.5.0-18-generic i686
ApportVersion: 2.6.1-0ubuntu6
Architecture: i386
Date: Tue Nov 27 16:32:59 2012
MarkForUpload: True
SourcePackage: lvm2
UpgradeStatus: Upgraded to quantal on 2012-10-18 (39 days ago)

** Affects: lvm2 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 quantal running-unity units-policy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1083680

Title:
  lvm man pages are confusing when it comes to units

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1083680/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to