From 265e0f17317e6d23864263c04ae581b35f946b5e Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Mon, 12 Sep 2005 04:57:52 +0000 Subject: Fix assembling of raid10 in the face of missing devices. We now check if enough devices are present properly, so --force can be used to good effect. 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 6615ea1..65fa824 100644 --- a/mdadm.h +++ b/mdadm.h @@ -291,7 +291,8 @@ extern void uuid_from_super(int uuid[4], mdp_super_t *super); 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); -- cgit