summaryrefslogtreecommitdiff
path: root/super0.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-09-18 15:04:47 +1000
committerNeilBrown <neilb@suse.de>2008-09-18 15:04:47 +1000
commit0e6004268370082b3af89e73c356f4ada5ca31c2 (patch)
tree4978df58685357fbddf55594a21315e5953aa342 /super0.c
parent1cccd683f3a77f269ae8183277e9da8ee1c2d7b7 (diff)
Compile fixes, particularly moving more stuff under MDASSEMBLE
Now 'make everything' works again.
Diffstat (limited to 'super0.c')
-rw-r--r--super0.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/super0.c b/super0.c
index ed44affe..99aa3d88 100644
--- a/super0.c
+++ b/super0.c
@@ -634,6 +634,8 @@ struct devinfo {
mdu_disk_info_t disk;
struct devinfo *next;
};
+
+#ifndef MDASSEMBLE
/* Add a device to the superblock being created */
static void add_to_super0(struct supertype *st, mdu_disk_info_t *dinfo,
int fd, char *devname)
@@ -661,6 +663,7 @@ static void add_to_super0(struct supertype *st, mdu_disk_info_t *dinfo,
di->next = NULL;
*dip = di;
}
+#endif
static int store_super0(struct supertype *st, int fd)
{
@@ -1036,6 +1039,7 @@ static void free_super0(struct supertype *st)
st->sb = NULL;
}
+#ifndef MDASSEMBLE
static int validate_geometry0(struct supertype *st, int level,
int layout, int raiddisks,
int chunk, unsigned long long size,
@@ -1075,6 +1079,7 @@ static int validate_geometry0(struct supertype *st, int level,
*freesize = MD_NEW_SIZE_SECTORS(ldsize >> 9);
return 1;
}
+#endif /* MDASSEMBLE */
struct superswitch super0 = {
#ifndef MDASSEMBLE
@@ -1085,13 +1090,14 @@ struct superswitch super0 = {
.brief_detail_super = brief_detail_super0,
.export_detail_super = export_detail_super0,
.write_init_super = write_init_super0,
+ .validate_geometry = validate_geometry0,
+ .add_to_super = add_to_super0,
#endif
.match_home = match_home0,
.uuid_from_super = uuid_from_super0,
.getinfo_super = getinfo_super0,
.update_super = update_super0,
.init_super = init_super0,
- .add_to_super = add_to_super0,
.store_super = store_super0,
.compare_super = compare_super0,
.load_super = load_super0,
@@ -1101,5 +1107,4 @@ struct superswitch super0 = {
.locate_bitmap = locate_bitmap0,
.write_bitmap = write_bitmap0,
.free_super = free_super0,
- .validate_geometry = validate_geometry0,
};