200-reduce_size.patch 517 B

12345678910111213141516171819202122232425
  1. --- a/Incremental.c
  2. +++ b/Incremental.c
  3. @@ -983,6 +983,10 @@ static int array_try_spare(char *devname
  4. goto next;
  5. }
  6. + #ifndef MDADM_FULL
  7. + return 0;
  8. + #endif
  9. +
  10. dl = domain_from_array(sra, st2->ss->name);
  11. if (domain_test(dl, pol, st2->ss->name) != 1) {
  12. /* domain test fails */
  13. --- a/util.c
  14. +++ b/util.c
  15. @@ -1147,7 +1147,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
  24. };