]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super1.c
add missing units to --examine
authorCorey Hickey <bugfood-c@fatooh.org>
Tue, 12 Feb 2019 01:42:27 +0000 (17:42 -0800)
committerJes Sorensen <jsorensen@fb.com>
Thu, 28 Feb 2019 20:51:58 +0000 (15:51 -0500)
commit227aeaa872d4898273cf87a4253898823d556c43
tree3bd4c73a94d8b8e65aa383898a2f94c11a250a17
parent2b57e4fe041d52ae29866c93a878a11c07223cff
add missing units to --examine

Within the output of "mdadm --examine", there are three sizes reported
on adjacent lines. For example:

$ sudo mdadm --examine /dev/md3
[...]
 Avail Dev Size : 17580545024 (8383.06 GiB 9001.24 GB)
     Array Size : 17580417024 (16765.99 GiB 18002.35 GB)
  Used Dev Size : 11720278016 (5588.66 GiB 6000.78 GB)
[...]

This can be confusing, since the first and third line are in 512-byte
sectors, and the second is in KiB.

Add units to avoid ambiguity.

(I don't particularly like the "KiB" notation, but it is at least
unambiguous.)

Signed-off-by: Corey Hickey <bugfood-c@fatooh.org>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
super1.c