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