From f277ce367125882ea809f981172b8d5c0cc4d5c7 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Thu, 4 Aug 2005 04:41:12 +0000 Subject: Assorted Fixes for multiple bugs. Assemble would crash, or just not work. A few other problem found by a new test-suite. Signed-off-by: Neil Brown --- mdadm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mdadm.h') diff --git a/mdadm.h b/mdadm.h index 4ad4d47..fa8ea69 100644 --- a/mdadm.h +++ b/mdadm.h @@ -190,6 +190,7 @@ extern struct superswitch { void (*locate_bitmap)(struct supertype *st, int fd); int (*write_bitmap)(struct supertype *st, int fd, void *sbv); int major; + int swapuuid; /* true if uuid is bigending rather than hostendian */ } super0, super1, *superlist[]; struct supertype { @@ -281,7 +282,7 @@ extern char *conf_word(FILE *file, int allow_key); extern void free_line(char *line); extern int match_oneof(char *devices, char *devname); extern void uuid_from_super(int uuid[4], mdp_super_t *super); -extern int same_uuid(int a[4], int b[4]); +extern int same_uuid(int a[4], int b[4], int swapuuid); /* extern int compare_super(mdp_super_t *first, mdp_super_t *second);*/ extern unsigned long calc_csum(void *super, int bytes); extern int enough(int level, int raid_disks, int avail_disks); -- cgit