ae8204ccd93d7cf21332fed1a8f4ce5d97beec8d
[openwrt/staging/hauke.git] / package / utils / mdadm / patches / 200-reduce_size.patch
1 --- a/Incremental.c
2 +++ b/Incremental.c
3 @@ -1642,6 +1642,10 @@ static int Incremental_container(struct
4 if (ra_all == ra_blocked)
5 return 0;
6
7 +#ifndef MDADM_FULL
8 + return 0;
9 +#endif
10 +
11 /* Now move all suitable spares from spare container */
12 domains = domain_from_array(list, st->ss->name);
13 memcpy(suuid, uuid_zero, sizeof(int[4]));
14 --- a/util.c
15 +++ b/util.c
16 @@ -1151,7 +1151,9 @@ void wait_for(char *dev, int fd)
17 struct superswitch *superlist[] =
18 {
19 &super0, &super1,
20 +#ifdef MDADM_FULL
21 &super_ddf, &super_imsm,
22 +#endif
23 &mbr, &gpt,
24 NULL };
25