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 --- Detail.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Detail.c') diff --git a/Detail.c b/Detail.c index 8fa044a..882ec07 100644 --- a/Detail.c +++ b/Detail.c @@ -205,8 +205,9 @@ int Detail(char *dev, int brief, int test) printf(" Layout : %s\n", c?c:"-unknown-"); } if (array.level == 10) { - printf(" Layout : near=%d, far=%d\n", - array.layout&255, (array.layout>>8)&255); + printf(" Layout : near=%d, %s=%d\n", + array.layout&255, (array.layout&0x10000)?"offset":"far", + (array.layout>>8)&255); } switch (array.level) { case 0: @@ -254,8 +255,9 @@ This is pretty boring c?c:"-unknown-"); } if (info.new_level == 10) { - printf(" New Layout : near=%d, far=%d\n", + printf(" New Layout : near=%d, %s=%d\n", info.new_layout&255, + (info.new_layout&0x10000)?"offset":"far", (info.new_layout>>8)&255); } } -- cgit