diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/raid5.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 8a5e14e4a851..95953273c4d9 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -4967,6 +4967,11 @@ static void *raid5_takeover(mddev_t *mddev) | |||
4967 | 4967 | ||
4968 | if (mddev->level == 1) | 4968 | if (mddev->level == 1) |
4969 | return raid5_takeover_raid1(mddev); | 4969 | return raid5_takeover_raid1(mddev); |
4970 | if (mddev->level == 4) { | ||
4971 | mddev->new_layout = ALGORITHM_PARITY_N; | ||
4972 | mddev->new_level = 5; | ||
4973 | return setup_conf(mddev); | ||
4974 | } | ||
4970 | 4975 | ||
4971 | return ERR_PTR(-EINVAL); | 4976 | return ERR_PTR(-EINVAL); |
4972 | } | 4977 | } |