mdadm: strip support for intel/ddf hardware raid to significantly reduce code size
[openwrt/svn-archive/archive.git] / package / utils / mdadm / patches / 200-reduce_size.patch
1 --- a/Incremental.c
2 +++ b/Incremental.c
3 @@ -1508,6 +1508,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 @@ -928,7 +928,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