diff options
author | NeilBrown <neilb@suse.de> | 2013-05-13 09:05:16 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-05-13 09:05:16 +0200 |
commit | 5a23a06ea472460ae3beddf9140923570268e3dd (patch) | |
tree | 7caaf91886b3addfb01fd451a351cefee76de210 /super1.c | |
parent | Detail: report on inactive arrays. (diff) | |
download | mdadm-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 */ |