* Not set for names read from .config
*/
char writemostly;
+ char re_add;
struct mddev_dev_s *next;
} *mddev_dev_t;
int (*compare_super)(void **firstp, void *secondv);
int (*load_super)(struct supertype *st, int fd, void **sbp, char *devname);
struct supertype * (*match_metadata_desc)(char *arg);
- __u64 (*avail_size)(__u64 size);
- int (*add_internal_bitmap)(void *sbv, int chunk, int delay, int write_behind, unsigned long long size);
- void (*locate_bitmap)(struct supertype *st, int fd);
+ __u64 (*avail_size)(struct supertype *st, __u64 size);
+ int (*add_internal_bitmap)(struct supertype *st, void *sbv, int chunk, int delay, int write_behind, int *sizep, int may_change, int major);
+ void (*locate_bitmap)(struct supertype *st, int fd, void *sbv);
int (*write_bitmap)(struct supertype *st, int fd, void *sbv);
int major;
int swapuuid; /* true if uuid is bigending rather than hostendian */
extern int CreateBitmap(char *filename, int force, char uuid[16],
unsigned long chunksize, unsigned long daemon_sleep,
unsigned long write_behind,
- unsigned long long array_size);
+ unsigned long long array_size,
+ int major);
extern int ExamineBitmap(char *filename, int brief, struct supertype *st);
extern int md_get_version(int fd);
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);
+extern int enough(int level, int raid_disks, int layout,
+ char *avail, int avail_disks);
extern int ask(char *mesg);