diff options
author | NeilBrown <neilb@suse.de> | 2009-03-31 03:57:09 (GMT) |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-03-31 03:57:09 (GMT) |
commit | e9d4758f6e93488dc719a1445ce54659a570938f (patch) | |
tree | 13fb97a1f47f806b25b957cbf9d1ec69df8d0de8 /drivers/md | |
parent | b3546035277847028df650b147469fc943cf5c71 (diff) | |
download | linux-fsl-qoriq-e9d4758f6e93488dc719a1445ce54659a570938f.tar.xz |
md: add takeover support for raid4 -> raid5 conversion.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md')
-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 8a5e14e..9595327 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); } |