imsm: determine failed indexes from the most up-to-date disk
load_imsm_disk() currently notices if spares missed their activation update, but we allow a stale failed disk back in to the array because its serial number is clobbered in the most up-to-date disk. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
parent
47ee5a4566
commit
3f6efecc4c
|
@ -1097,6 +1097,13 @@ load_imsm_disk(int fd, struct intel_super *super, char *devname, int keep_fd)
|
|||
}
|
||||
}
|
||||
|
||||
/* no match, maybe a stale failed drive */
|
||||
if (i == super->anchor->num_disks && dl->index >= 0) {
|
||||
dl->disk = *__get_imsm_disk(super->anchor, dl->index);
|
||||
if (__le32_to_cpu(dl->disk.status) & FAILED_DISK)
|
||||
dl->index = -2;
|
||||
}
|
||||
|
||||
if (alloc)
|
||||
super->disks = dl;
|
||||
|
||||
|
|
Loading…
Reference in New Issue