]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: fix mark_failure / introduce mark_missing
authorDan Williams <dan.j.williams@intel.com>
Wed, 25 Feb 2009 01:45:56 +0000 (18:45 -0700)
committerDan Williams <dan.j.williams@intel.com>
Wed, 25 Feb 2009 01:45:56 +0000 (18:45 -0700)
commit0556e1a2b1d6d4ddcb3a198017f5503c585b1473
tree1926b830500f312e517a0020498f91c7ac3c089c
parent620b171338b26125e21c18cd121cf397ddb80e2a
imsm: fix mark_failure / introduce mark_missing

Actually, rename mark_failure to mark_missing and then implement the
correct mark_failure which according to new documentation is to:

1/ Set the FAILED status bit
2/ Set IMSM_ORD_REBUILD to mark the disk out of sync
3/ Set map->failed_disk_num if this is the first failure detected
   failure (it is ~0 otherwise)

Previously the assumption was that IMSM_ORD_REBUILD only appeared in
map[1], so all routines that care about out-of-sync disks need to be
updated.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
super-intel.c