]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: continue resync on 3-disk RAID10
authorMaksymilian Kunt <maksymilian.kunt@intel.com>
Mon, 13 Nov 2017 11:30:49 +0000 (12:30 +0100)
committerJes Sorensen <jsorensen@fb.com>
Tue, 21 Nov 2017 18:31:39 +0000 (13:31 -0500)
commit8b9cd157dc030924afaeb1dd1a4d3306f5bda118
tree0ed72a1af104b7dcf3cfb63b2eb23cab66d21deb
parent1ea0462990c466d9ffd25d149fa6e983b8834b30
imsm: continue resync on 3-disk RAID10

If RAID10 gets degraded during resync and is stopped, it doesn't continue
resync after automatic assemble and it is reported to be in sync. Resync
is blocked because the disk is missing. It should not happen for RAID10 as
it can still continue with 3 disks.

Count missing disks. Block resync only if number of missing disks exceeds
limit for given RAID level (only different for RAID10). Check if the
disk under recovery is present. If not, resync should be allowed to run.

Signed-off-by: Maksymilian Kunt <maksymilian.kunt@intel.com>
Signed-off-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
super-intel.c