]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super-intel.c
set resync_start in Incremental_container
[thirdparty/mdadm.git] / super-intel.c
index cfbf7721163cfdd0d32cdb09d0dbf3cc3b7f2e46..3c15ed294f1fc2399132fe6d8f715aee2d5ccdad 100644 (file)
@@ -1053,6 +1053,11 @@ static struct mdinfo *container_content_imsm(struct supertype *st)
                this->array.chunk_size = __le16_to_cpu(map->blocks_per_strip) << 9;
                this->array.state = !vol->dirty;
                this->container_member = i;
+               if (map->map_state == IMSM_T_STATE_UNINITIALIZED || dev->vol.dirty)
+                       this->resync_start = 0;
+               else
+                       this->resync_start = ~0ULL;
+
                strncpy(this->name, (char *) dev->volume, MAX_RAID_SERIAL_LEN);
                this->name[MAX_RAID_SERIAL_LEN] = 0;