200-reduce_size.patch 559 B

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