|
@@ -4446,6 +4446,9 @@ static int raid5_check_reshape(mddev_t *mddev)
|
|
return -EINVAL; /* Cannot shrink array or change level yet */
|
|
return -EINVAL; /* Cannot shrink array or change level yet */
|
|
if (mddev->delta_disks == 0)
|
|
if (mddev->delta_disks == 0)
|
|
return 0; /* nothing to do */
|
|
return 0; /* nothing to do */
|
|
|
|
+ if (mddev->bitmap)
|
|
|
|
+ /* Cannot grow a bitmap yet */
|
|
|
|
+ return -EBUSY;
|
|
|
|
|
|
/* Can only proceed if there are plenty of stripe_heads.
|
|
/* Can only proceed if there are plenty of stripe_heads.
|
|
* We need a minimum of one full stripe,, and for sensible progress
|
|
* We need a minimum of one full stripe,, and for sensible progress
|