aboutsummaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/raid5.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
index 8a5e14e4a85..95953273c4d 100644
--- a/drivers/md/raid5.c
+++ b/drivers/md/raid5.c
@@ -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);
}