imsm: write initial ppl on a disk added for rebuild
When rebuild is initiated by the UEFI driver it is possible that the new disk will not contain a valid ppl header. Just write the initial ppl and don't abort assembly. Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
This commit is contained in:
parent
2fc0fc63a9
commit
2ec9d182ea
|
@ -6227,7 +6227,10 @@ out:
|
|||
|
||||
if (map->map_state == IMSM_T_STATE_UNINITIALIZED ||
|
||||
(map->map_state == IMSM_T_STATE_NORMAL &&
|
||||
!(dev->vol.dirty & RAIDVOL_DIRTY)))
|
||||
!(dev->vol.dirty & RAIDVOL_DIRTY)) ||
|
||||
(dev->vol.migr_state == MIGR_REBUILD &&
|
||||
dev->vol.curr_migr_unit == 0 &&
|
||||
get_imsm_disk_idx(dev, disk->disk.raid_disk, MAP_1) != idx))
|
||||
ret = st->ss->write_init_ppl(st, info, d->fd);
|
||||
else
|
||||
info->mismatch_cnt++;
|
||||
|
|
Loading…
Reference in New Issue