summaryrefslogtreecommitdiff
path: root/mdadm.h
diff options
context:
space:
mode:
authorMaciej Naruszewicz <maciej.naruszewicz@intel.com>2012-10-02 16:41:13 +1000
committerNeilBrown <neilb@suse.de>2012-10-02 16:41:13 +1000
commitf0ec67106c00f8dd1cadebfdff933fd8aefa0ff2 (patch)
treed24c04334fe33be3a8edf58d88086cdc122bc402 /mdadm.h
parent570abc6f3881b5152cb1244d5e6afcc421c5a4ce (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.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/mdadm.h b/mdadm.h
index 6d219f7f..fe28d3de 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -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)