diff options
author | NeilBrown <neilb@suse.de> | 2009-07-14 15:12:29 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-07-14 15:12:29 +1000 |
commit | fe77a154b1be42c65f15f0dad363f100de923489 (patch) | |
tree | 5e219389003ba12ac90828d111576180dcf6e5fd /super1.c | |
parent | 5f4fc0e1916c47c1b172801f53362e50d32cd4dc (diff) |
Examine/Detail: report raid6 layout
Somehow this was missing before...
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super1.c')
-rw-r--r-- | super1.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -305,6 +305,10 @@ static void examine_super1(struct supertype *st, char *homehost) c = map_num(r5layout, __le32_to_cpu(sb->new_layout)); printf(" New Layout : %s\n", c?c:"-unknown-"); } + if (__le32_to_cpu(sb->level) == 6) { + c = map_num(r6layout, __le32_to_cpu(sb->new_layout)); + printf(" New Layout : %s\n", c?c:"-unknown-"); + } if (__le32_to_cpu(sb->level) == 10) { printf(" New Layout :"); print_r10_layout(__le32_to_cpu(sb->new_layout)); @@ -336,6 +340,10 @@ static void examine_super1(struct supertype *st, char *homehost) c = map_num(r5layout, __le32_to_cpu(sb->layout)); printf(" Layout : %s\n", c?c:"-unknown-"); } + if (__le32_to_cpu(sb->level) == 6) { + c = map_num(r6layout, __le32_to_cpu(sb->layout)); + printf(" Layout : %s\n", c?c:"-unknown-"); + } if (__le32_to_cpu(sb->level) == 10) { int lo = __le32_to_cpu(sb->layout); printf(" Layout :"); |