summaryrefslogtreecommitdiffstats
path: root/super1.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-05-13 09:05:16 +0200
committerNeilBrown <neilb@suse.de>2013-05-13 09:05:16 +0200
commit5a23a06ea472460ae3beddf9140923570268e3dd (patch)
tree7caaf91886b3addfb01fd451a351cefee76de210 /super1.c
parentDetail: report on inactive arrays. (diff)
downloadmdadm-5a23a06ea472460ae3beddf9140923570268e3dd.tar.xz
mdadm-5a23a06ea472460ae3beddf9140923570268e3dd.zip
mdassemble - fix new compile-time problems.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super1.c')
-rw-r--r--super1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/super1.c b/super1.c
index d0f1d5f0..eb812757 100644
--- a/super1.c
+++ b/super1.c
@@ -1012,12 +1012,13 @@ static int update_super1(struct supertype *st, struct mdinfo *info,
long bm_sectors = 0;
long space;
+#ifndef MDASSEMBLE
if (sb->feature_map & __cpu_to_le32(MD_FEATURE_BITMAP_OFFSET)) {
struct bitmap_super_s *bsb;
bsb = (struct bitmap_super_s *)(((char*)sb)+MAX_SB_SIZE);
bm_sectors = bitmap_sectors(bsb);
}
-
+#endif
if (sb_offset < data_offset) {
/* 1.1 or 1.2. Put bbl just before data
*/