From: Artur Paszkiewicz Date: Thu, 28 Sep 2017 12:41:16 +0000 (+0200) Subject: imsm: always do ppl recovery when starting a rebuilding array X-Git-Tag: mdadm-4.1-rc1~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98e96bdbefaf0bf1c3d4161862af1ab6d03da1db;p=thirdparty%2Fmdadm.git imsm: always do ppl recovery when starting a rebuilding array Set resync_start to 0 when starting a rebuilding array to make the kernel perform ppl recovery before the rebuild. Signed-off-by: Artur Paszkiewicz Signed-off-by: Jes Sorensen --- diff --git a/super-intel.c b/super-intel.c index 501d0c3c..996d1335 100644 --- a/super-intel.c +++ b/super-intel.c @@ -7756,6 +7756,9 @@ static struct mdinfo *container_content_imsm(struct supertype *st, char *subarra map->blocks_per_strip; info_d->ppl_sector = this->ppl_sector; info_d->ppl_size = this->ppl_size; + if (this->consistency_policy == CONSISTENCY_POLICY_PPL && + recovery_start == 0) + this->resync_start = 0; } else { info_d->component_size = blocks_per_member(map); }