From e4965ef8461b3d0db6e94939f07d814d819f86c2 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 13 Oct 2008 16:15:18 +1100 Subject: 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). --- super0.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'super0.c') diff --git a/super0.c b/super0.c index 8e4c568e..71dc39ce 100644 --- a/super0.c +++ b/super0.c @@ -188,10 +188,9 @@ static void examine_super0(struct supertype *st, char *homehost) printf(" Layout : %s\n", c?c:"-unknown-"); } if (sb->level == 10) { - printf(" Layout : near=%d, %s=%d\n", - sb->layout&255, - (sb->layout&0x10000)?"offset":"far", - (sb->layout>>8)&255); + printf(" Layout :"); + print_r10_layout(sb->layout); + printf("\n"); } switch(sb->level) { case 0: -- cgit v1.2.3