X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fmdadm.git;a=blobdiff_plain;f=super-intel.c;fp=super-intel.c;h=47809bc21642613fe0820e158bafdff5dbb215cc;hp=5c1f759f24a64df2b01321ec406bd59df8f3d4bf;hb=1e93d0d15913c3fa6d0de5af3fb5e4e3b3f068da;hpb=42e641abeb312a91b841f1b1ea73661e4bd5a31c diff --git a/super-intel.c b/super-intel.c index 5c1f759f..47809bc2 100644 --- a/super-intel.c +++ b/super-intel.c @@ -7946,7 +7946,8 @@ static struct mdinfo *container_content_imsm(struct supertype *st, char *subarra skip = 1; if (!skip && (ord & IMSM_ORD_REBUILD)) recovery_start = 0; - + if (!(ord & IMSM_ORD_REBUILD)) + this->array.working_disks++; /* * if we skip some disks the array will be assmebled degraded; * reset resync start to avoid a dirty-degraded @@ -7988,8 +7989,6 @@ static struct mdinfo *container_content_imsm(struct supertype *st, char *subarra else this->array.spare_disks++; } - if (info_d->recovery_start == MaxSector) - this->array.working_disks++; info_d->events = __le32_to_cpu(mpb->generation_num); info_d->data_offset = pba_of_lba0(map);