commit | 16d9cfab930bb6f4946cff8ba7429701fd15b414 | [log] [tgz] |
---|---|---|
author | Eric Mei <eric.mei@seagate.com> | Tue Jan 06 09:35:02 2015 -0800 |
committer | NeilBrown <neilb@suse.de> | Wed Feb 25 11:38:26 2015 +1100 |
tree | a1a31cbe4685b2d49eebd883a402cb0727685391 | |
parent | d1901ef099c38afd11add4cfb3312c02ef21ec4a [diff] |
raid5: check faulty flag for array status during recovery. When we have more than 1 drive failure, it's possible we start rebuild one drive while leaving another faulty drive in array. To determine whether array will be optimal after building, current code only check whether a drive is missing, which could potentially lead to data corruption. This patch is to add checking Faulty flag. Signed-off-by: NeilBrown <neilb@suse.de>