]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdadm.h
Display size with human_size_brief with a chosen prefix
[thirdparty/mdadm.git] / mdadm.h
diff --git a/mdadm.h b/mdadm.h
index 6d219f7f85f83837a24cf0c6e28d7aa297220d38..fe28d3de1d3733b49c2711ca920ba6bb4b07cdb3 100644 (file)
--- 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)