--- linux-2.6.0/drivers/md/md.c 2004-01-05 13:43:16.000000000 -0500 +++ linux-2.6.0-evms/drivers/md/md.c 2004-01-05 10:34:06.000000000 -0600 @@ -2030,6 +2030,9 @@ info.state = 0; if (mddev->in_sync) info.state = (1<recovery) && + !test_bit(MD_RECOVERY_DONE, &mddev->recovery)) + info.state |= MD_ARRAY_RECOVERY_RUNNING; info.active_disks = active; info.working_disks = working; info.failed_disks = failed; --- linux-2.6.0/include/linux/raid/md_u.h 2004-01-05 13:44:34.000000000 -0500 +++ linux-2.6.0-evms/include/linux/raid/md_u.h 2004-01-05 10:34:25.000000000 -0600 @@ -50,6 +50,10 @@ int patchlevel; } mdu_version_t; +#define MD_ARRAY_CLEAN 0 +#define MD_ARRAY_ERRORS 1 +#define MD_ARRAY_RECOVERY_RUNNING 2 + typedef struct mdu_array_info_s { /* * Generic constant information