]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super-intel.c
imsm: Write empty PPL header if assembling regular clean array.
[thirdparty/mdadm.git] / super-intel.c
index 7b2327bac3cf43e8d8211b8432416b5b2de3ad68..501d0c3cb7038c2cbb3b8121de8e9b97f2f3fbdb 100644 (file)
@@ -6225,7 +6225,9 @@ out:
        }
 
        if (ret == 1) {
-               if (map->map_state == IMSM_T_STATE_UNINITIALIZED)
+               if (map->map_state == IMSM_T_STATE_UNINITIALIZED ||
+                  (map->map_state == IMSM_T_STATE_NORMAL &&
+                  !(dev->vol.dirty & RAIDVOL_DIRTY)))
                        ret = st->ss->write_init_ppl(st, info, d->fd);
                else
                        info->mismatch_cnt++;