]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Assemble.c
FIX: Bad block verification during assembling array
authorKrzysztof Wojcik <krzysztof.wojcik@intel.com>
Thu, 16 Dec 2010 13:34:54 +0000 (14:34 +0100)
committerNeilBrown <neilb@suse.de>
Sun, 26 Dec 2010 10:41:57 +0000 (21:41 +1100)
commita06d022db41ed624125e343f9a5de278c5d32ae3
treecfaf7698ea1abcb21ec20c8a7df67fbab882e928
parente53763098186f2a7708feb2b9b779c5b7cdb9a71
FIX: Bad block verification during assembling array

We need to refuse to assemble an arrays with bad blocks.
Initially there was condition in container_content function
that returns error value in the case when metadata store information
about bad blocks.
When the container_content function is called from functions NOT connected
with assemble (Kill_subarray, Detail) we get faulty error return value.
Patch introduces new flag in array.status - MD_SB_BBM_ERRORS. It is set
in container_content when bad blocks are detected and can be checked by
container_content caller.

Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c
Incremental.c
md_p.h
super-intel.c