diff options
author | Krzysztof Wojcik <krzysztof.wojcik@intel.com> | 2010-12-16 14:34:54 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-12-26 11:41:57 +0100 |
commit | a06d022db41ed624125e343f9a5de278c5d32ae3 (patch) | |
tree | cfaf7698ea1abcb21ec20c8a7df67fbab882e928 /md_p.h | |
parent | Remove stray 'free' in block_monitor. (diff) | |
download | mdadm-a06d022db41ed624125e343f9a5de278c5d32ae3.tar.xz mdadm-a06d022db41ed624125e343f9a5de278c5d32ae3.zip |
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>
Diffstat (limited to 'md_p.h')
-rw-r--r-- | md_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -100,6 +100,7 @@ typedef struct mdp_device_descriptor_s { */ #define MD_SB_CLEAN 0 #define MD_SB_ERRORS 1 +#define MD_SB_BBM_ERRORS 2 #define MD_SB_BITMAP_PRESENT 8 /* bitmap may be present nearby */ |