Skip to content

Commit

Permalink
md: add takeover support for raid4 -> raid5 conversion.
Browse files Browse the repository at this point in the history
Signed-off-by: NeilBrown <neilb@suse.de>
  • Loading branch information
NeilBrown committed Mar 31, 2009
1 parent b354603 commit e9d4758
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -4967,6 +4967,11 @@ static void *raid5_takeover(mddev_t *mddev)

if (mddev->level == 1)
return raid5_takeover_raid1(mddev);
if (mddev->level == 4) {
mddev->new_layout = ALGORITHM_PARITY_N;
mddev->new_level = 5;
return setup_conf(mddev);
}

return ERR_PTR(-EINVAL);
}
Expand Down

0 comments on commit e9d4758

Please sign in to comment.