diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2017-01-09 16:30:49 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2017-01-20 23:52:17 +0100 |
commit | f8234d6e5f4f82690da61abf03f93ddfb5cff467 (patch) | |
tree | 73f7b888722f32596adfc19bbefeaa16e036d547 /conf | |
parent | 6a20b221516fcecda25bc56996028eb50b3250f8 (diff) | |
download | lvm2-f8234d6e5f4f82690da61abf03f93ddfb5cff467.tar.gz |
libdm: add human R|readable units
When showing sizes with 'H|human' units we do use standard rounding.
This however is confusing users from time to time,
when the printed number uses some biger units i.e. GiB and there is just
tiny fraction of space missing.
So here is some real-life example with new 'r' unit.
$lvs
LV VG Attr LSize Pool Origin
lvol0 vg -wi-a----- 1.99g
lvol1 vg -wi-a----- <2.00g
lvol2 vg -wi-a----- <2.01g
Meaning is - lvol1 has 'slightly' less then 2.00g - from sign '<' user
can be aware the LV doesn't have full 2.00GiB in size so he
will be less surpriced allocation of 2G volume will not succeed.
$ vgs
VG #PV #LV #SN Attr VSize VFree
vg 2 2 0 wz--n- <6,00g <2,01g
For uses needing 'old' undecorated human unit simply will continue
to use 'H|h' units.
The new R|r may further change when we would recongnize some
other way how to improve readability.
Diffstat (limited to 'conf')
-rw-r--r-- | conf/example.conf.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/example.conf.in b/conf/example.conf.in index b1a2a9c54..c3defe5e0 100644 --- a/conf/example.conf.in +++ b/conf/example.conf.in @@ -665,7 +665,7 @@ global { # Configuration option global/units. # Default value for --units argument. - units = "h" + units = "r" # Configuration option global/si_unit_consistency. # Distinguish between powers of 1024 and 1000 bytes. |