|
@@ -2714,7 +2714,7 @@ action_show(mddev_t *mddev, char *page)
|
|
{
|
|
{
|
|
char *type = "idle";
|
|
char *type = "idle";
|
|
if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) ||
|
|
if (test_bit(MD_RECOVERY_RUNNING, &mddev->recovery) ||
|
|
- test_bit(MD_RECOVERY_NEEDED, &mddev->recovery)) {
|
|
|
|
|
|
+ (!mddev->ro && test_bit(MD_RECOVERY_NEEDED, &mddev->recovery))) {
|
|
if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery))
|
|
if (test_bit(MD_RECOVERY_RESHAPE, &mddev->recovery))
|
|
type = "reshape";
|
|
type = "reshape";
|
|
else if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) {
|
|
else if (test_bit(MD_RECOVERY_SYNC, &mddev->recovery)) {
|