Commit e9d4758f authored by NeilBrown's avatar NeilBrown

md: add takeover support for raid4 -> raid5 conversion.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent b3546035
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment