summaryrefslogtreecommitdiff
path: root/md_p.h
diff options
context:
space:
mode:
authorKrzysztof Wojcik <krzysztof.wojcik@intel.com>2010-12-16 14:34:54 +0100
committerNeilBrown <neilb@suse.de>2010-12-26 21:41:57 +1100
commita06d022db41ed624125e343f9a5de278c5d32ae3 (patch)
treecfaf7698ea1abcb21ec20c8a7df67fbab882e928 /md_p.h
parente53763098186f2a7708feb2b9b779c5b7cdb9a71 (diff)
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/md_p.h b/md_p.h
index 4594a36a..6c79a3d1 100644
--- a/md_p.h
+++ b/md_p.h
@@ -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 */