提交 e9d4758f 编写于 作者: N NeilBrown

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

Signed-off-by: NNeilBrown <neilb@suse.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册