diff options
author | Neil Brown <neilb@suse.de> | 2005-09-12 04:57:52 +0000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2005-09-12 04:57:52 +0000 |
commit | 265e0f17317e6d23864263c04ae581b35f946b5e (patch) | |
tree | 0b368c095b4cfa6081a1d74a8ae44a288d09e511 /super0.c | |
parent | 63f8c4c76bff7d45e9403908ed3591edac7a6e4f (diff) | |
download | mdadm-265e0f17317e6d23864263c04ae581b35f946b5e.tar.gz mdadm-265e0f17317e6d23864263c04ae581b35f946b5e.tar.xz mdadm-265e0f17317e6d23864263c04ae581b35f946b5e.zip |
Fix assembling of raid10 in the face of missing devices.
We now check if enough devices are present properly, so
--force can be used to good effect.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'super0.c')
-rw-r--r-- | super0.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -131,6 +131,10 @@ static void examine_super0(void *sbv) c = map_num(r5layout, sb->layout); 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); + } switch(sb->level) { case 0: case 4: @@ -234,6 +238,7 @@ static void getinfo_super0(struct mdinfo *info, mddev_ident_t ident, void *sbv) info->array.patch_version = sb->patch_version; info->array.raid_disks = sb->raid_disks; info->array.level = sb->level; + info->array.layout = sb->layout; info->array.md_minor = sb->md_minor; info->array.ctime = sb->ctime; |