mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
md: add takeover support for raid4 -> raid5 conversion.
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
b354603527
commit
e9d4758f6e
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user