summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-10-13 16:15:18 +1100
committerNeilBrown <neilb@suse.de>2008-10-13 16:15:18 +1100
commite4965ef8461b3d0db6e94939f07d814d819f86c2 (patch)
tree61e614fb47f97eb10e6628fa531a0065b4ddf0c4 /mdadm.h
parent2a528478c75b6659188fc2ce0d9543124992fe6c (diff)
downloadmdadm-e4965ef8461b3d0db6e94939f07d814d819f86c2.tar.gz
mdadm-e4965ef8461b3d0db6e94939f07d814d819f86c2.tar.xz
mdadm-e4965ef8461b3d0db6e94939f07d814d819f86c2.zip
Improve reporting of layout for raid10.
Showing e.g. near=1, far=2 for the 'far2' layout of raid10 is confusing even though there is a sense in which is it correct. Make it less confusing by only printing whichever number is not 1. If both are 1, make that clear too (i.e. no redundancy).
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdadm.h b/mdadm.h
index ce140e5..174ea39 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -513,7 +513,8 @@ extern void remove_partitions(int fd);
extern char *human_size(long long bytes);
-char *human_size_brief(long long bytes);
+extern char *human_size_brief(long long bytes);
+extern void print_r10_layout(int layout);
#define NoMdDev (1<<23)
extern int find_free_devnum(int use_partitions);