mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 17:48:58 +00:00
cd519abdbc
Tested on GnuBee PC1. Signed-off-by: Rosen Penev <rosenp@gmail.com>
26 lines
589 B
Diff
26 lines
589 B
Diff
--- a/Incremental.c
|
|
+++ b/Incremental.c
|
|
@@ -1619,6 +1619,10 @@ static int Incremental_container(struct supertype *st, char *devname,
|
|
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
|
|
@@ -1220,7 +1220,9 @@ void wait_for(char *dev, int fd)
|
|
struct superswitch *superlist[] =
|
|
{
|
|
&super0, &super1,
|
|
+#ifdef MDADM_FULL
|
|
&super_ddf, &super_imsm,
|
|
+#endif
|
|
&mbr, &gpt,
|
|
NULL
|
|
};
|