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 /mdadm.h | |
parent | 570abc6f3881b5152cb1244d5e6afcc421c5a4ce (diff) |
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 'mdadm.h')
-rw-r--r-- | mdadm.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -328,6 +328,11 @@ enum special_options { KillOpt, }; +enum prefix_standard { + JEDEC, + IEC +}; + /* structures read from config file */ /* List of mddevice names and identifiers * Identifiers can be: @@ -1240,7 +1245,7 @@ extern int set_array_info(int mdfd, struct supertype *st, struct mdinfo *info); unsigned long long min_recovery_start(struct mdinfo *array); extern char *human_size(long long bytes); -extern char *human_size_brief(long long bytes); +extern char *human_size_brief(long long bytes, int prefix); extern void print_r10_layout(int layout); #define NoMdDev (1<<23) |