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
master
Felix Fietkau 2013-06-28 11:26:48 +00:00
parent 253d616043
commit 4e8679cd67
1 changed files with 25 additions and 0 deletions

View File

@ -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 };