lvm man pages are confusing when it comes to units
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lvm2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The man page for lvextend gives these instructions for the -L option:
-L, --size [+]LogicalVolum
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,
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
ProcVersionSign
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)
Please note that lvm2 must preserve backwards compatibility as per Units Policy Exceptions section: /wiki.ubuntu. com/UnitsPolicy #Exception
https:/