diff options
author | Neil Brown <neilb@suse.de> | 2006-05-15 02:46:54 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-05-15 02:46:54 +0000 |
commit | b578481ca382959da894ebdd91c5e5f45d50374d (patch) | |
tree | 957c835dfdf7632dc05ea91ba8ba82137fd4ceed /Detail.c | |
parent | a99d6b669c4dbe7f9609c720c9f114e278b4388b (diff) | |
download | mdadm-b578481ca382959da894ebdd91c5e5f45d50374d.tar.gz |
Support new offset layout for raid10
Requires 2.6.18.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'Detail.c')
-rw-r--r-- | Detail.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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); } } |