aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/mdadm/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-06-28 11:26:48 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-06-28 11:26:48 +0000
commit4e8679cd6723cd1b8d70febe94e74c3e6ea646f4 (patch)
tree6a2557c942f17e5d2d1a9e1c2b196550861e3d1b /package/utils/mdadm/patches
parent253d616043cb8792cd5d1f0d2f162e6c143f8280 (diff)
downloadupstream-4e8679cd6723cd1b8d70febe94e74c3e6ea646f4.tar.gz
upstream-4e8679cd6723cd1b8d70febe94e74c3e6ea646f4.tar.bz2
upstream-4e8679cd6723cd1b8d70febe94e74c3e6ea646f4.zip
mdadm: strip support for intel/ddf hardware raid to significantly reduce code size
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37064 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/utils/mdadm/patches')
-rw-r--r--package/utils/mdadm/patches/200-reduce_size.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/package/utils/mdadm/patches/200-reduce_size.patch b/package/utils/mdadm/patches/200-reduce_size.patch
new file mode 100644
index 0000000000..3d8c2f421c
--- /dev/null
+++ b/package/utils/mdadm/patches/200-reduce_size.patch
@@ -0,0 +1,25 @@
+--- a/Incremental.c
++++ b/Incremental.c
+@@ -1508,6 +1508,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
+@@ -928,7 +928,9 @@ void wait_for(char *dev, int fd)
+ struct superswitch *superlist[] =
+ {
+ &super0, &super1,
++#ifdef MDADM_FULL
+ &super_ddf, &super_imsm,
++#endif
+ &mbr, &gpt,
+ NULL };
+