Skip to content
Commit fdcfbbb6 authored by NeilBrown's avatar NeilBrown
Browse files

md/raid5: allow 5-device RAID6 to be reshaped to 4-device.



There is a bug in 'check_reshape' for raid5.c  To checks
that the new minimum number of devices is large enough (which is
good), but it does so also after the reshape has started (bad).

This is bad because
 - the calculation is now wrong as mddev->raid_disks has changed
   already, and
 - it is pointless because it is now too late to stop.

So only perform that test when reshape has not been committed to.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent 78eaa0d4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment