From b578481ca382959da894ebdd91c5e5f45d50374d Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Mon, 15 May 2006 02:46:54 +0000 Subject: Support new offset layout for raid10 Requires 2.6.18. Signed-off-by: Neil Brown --- super0.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'super0.c') diff --git a/super0.c b/super0.c index 49474d0..8bded15 100644 --- a/super0.c +++ b/super0.c @@ -141,8 +141,10 @@ static void examine_super0(void *sbv) printf(" New Layout : %s\n", c?c:"-unknown-"); } if (sb->level == 10) { - printf(" New Layout : near=%d, far=%d\n", - sb->new_layout&255, (sb->new_layout>>8)&255); + printf(" New Layout : near=%d, %s=%d\n", + sb->new_layout&255, + (sb->new_layout&0x10000)?"offset":"far", + (sb->new_layout>>8)&255); } } if (sb->new_chunk != sb->chunk_size) @@ -170,8 +172,10 @@ static void examine_super0(void *sbv) printf(" Layout : %s\n", c?c:"-unknown-"); } if (sb->level == 10) { - printf(" Layout : near=%d, far=%d\n", - sb->layout&255, (sb->layout>>8)&255); + printf(" Layout : near=%d, %s=%d\n", + sb->layout&255, + (sb->layout&0x10000)?"offset":"far", + (sb->layout>>8)&255); } switch(sb->level) { case 0: -- cgit