(again).
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
mdopen.c super0.c super1.c bitmap.c
ASSEMBLE_SRCS := mdassemble.c Assemble.c config.c dlink.c util.c super0.c super1.c
+ASSEMBLE_FLAGS:= -DMDASSEMBLE
ifdef MDASSEMBLE_AUTO
ASSEMBLE_SRCS += mdopen.c mdstat.c
-ASSEMBLE_FLAGS = -DMDASSEMBLE_AUTO
+ASSEMBLE_FLAGS += -DMDASSEMBLE_AUTO
endif
all : mdadm mdadm.man md.man mdadm.conf.man
return newcsum;
}
+#ifndef MDASSEMBLE
static void examine_super0(void *sbv)
{
mdp_super_t *sb = sbv;
else
printf("%08x", sb->set_uuid0);
}
-
+#endif
static void uuid_from_super0(int uuid[4], void * sbv)
{
mdp_super_t *super = sbv;
struct superswitch super0 = {
+#ifndef MDASSEMBLE
.examine_super = examine_super0,
.brief_examine_super = brief_examine_super0,
.detail_super = detail_super0,
.brief_detail_super = brief_detail_super0,
+#endif
.uuid_from_super = uuid_from_super0,
.getinfo_super = getinfo_super0,
.update_super = update_super0,
return csum;
}
-
+#ifndef MDASSEMBLE
static void examine_super1(void *sbv)
{
struct mdp_superblock_1 *sb = sbv;
}
}
+#endif
+
static void uuid_from_super1(int uuid[4], void * sbv)
{
struct mdp_superblock_1 *super = sbv;
}
struct superswitch super1 = {
+#ifndef MDASSEMBLE
.examine_super = examine_super1,
.brief_examine_super = brief_examine_super1,
.detail_super = detail_super1,
.brief_detail_super = brief_detail_super1,
+#endif
.uuid_from_super = uuid_from_super1,
.getinfo_super = getinfo_super1,
.update_super = update_super1,