diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-06-28 11:26:48 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-06-28 11:26:48 +0000 |
commit | 08a4d8b8e6928667f56fecacc048f1694d3c10df (patch) | |
tree | 1f3314cbc3972403d2fe926eae627460a57ae6d6 | |
parent | e0606b7af2ee5680ac6ec69cf84b7d3b320f647f (diff) | |
download | mtk-20170518-08a4d8b8e6928667f56fecacc048f1694d3c10df.zip mtk-20170518-08a4d8b8e6928667f56fecacc048f1694d3c10df.tar.gz mtk-20170518-08a4d8b8e6928667f56fecacc048f1694d3c10df.tar.bz2 |
mdadm: strip support for intel/ddf hardware raid to significantly reduce code size
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 37064
-rw-r--r-- | package/utils/mdadm/patches/200-reduce_size.patch | 25 |
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 0000000..3d8c2f4 --- /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 }; + |