diff options
author | Maciej Naruszewicz <maciej.naruszewicz@intel.com> | 2012-10-02 16:41:13 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-10-02 16:41:13 +1000 |
commit | f0ec67106c00f8dd1cadebfdff933fd8aefa0ff2 (patch) | |
tree | d24c04334fe33be3a8edf58d88086cdc122bc402 /Query.c | |
parent | 570abc6f3881b5152cb1244d5e6afcc421c5a4ce (diff) | |
download | mdadm-f0ec67106c00f8dd1cadebfdff933fd8aefa0ff2.tar.gz |
Display size with human_size_brief with a chosen prefix
When using human_size_brief, only IEC prefixes were supported. Now
it's possible to specify which format we want to see - either IEC
(kibi, mibi, gibi) or JEDEC (kilo, mega, giga).
Signed-off-by: Maciej Naruszewicz <maciej.naruszewicz@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Query.c')
-rw-r--r-- | Query.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -76,7 +76,7 @@ int Query(char *dev) else { printf("%s: %s %s %d devices, %d spare%s. Use mdadm --detail for more detail.\n", dev, - human_size_brief(larray_size), + human_size_brief(larray_size,IEC), map_num(pers, array.level), array.raid_disks, array.spare_disks, array.spare_disks==1?"":"s"); |