mdadm-3.3.1-Grow-fix-removal-of-line-in-wrong-case.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From e339dba2a1744dc6860a58e286ded39fc993c2db Mon Sep 17 00:00:00 2001
  2. From: Pawel Baldysiak <pawel.baldysiak@intel.com>
  3. Date: Wed, 11 Jun 2014 15:18:44 +0000
  4. Subject: [PATCH 02/14] Grow: fix removal of line in wrong case
  5. Commit 18d9bcfa33939cee345d4d7735bc6081bcc409c8
  6. removed wrong line (in case RAID0->RAID4).
  7. This patch corrects this mistake
  8. (line should be removed in case RAID4->RAID4).
  9. Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
  10. Signed-off-by: NeilBrown <neilb@suse.de>
  11. ---
  12. Grow.c | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. diff --git a/Grow.c b/Grow.c
  15. index 12730e2..a2f4f14 100644
  16. --- a/Grow.c
  17. +++ b/Grow.c
  18. @@ -1324,6 +1324,7 @@ char *analyse_change(char *devname, struct mdinfo *info, struct reshape *re)
  19. switch (re->level) {
  20. case 4:
  21. + re->before.layout = 0;
  22. re->after.layout = 0;
  23. break;
  24. case 5:
  25. @@ -1339,7 +1340,6 @@ char *analyse_change(char *devname, struct mdinfo *info, struct reshape *re)
  26. switch (re->level) {
  27. case 4:
  28. - re->before.layout = 0;
  29. re->after.layout = 0;
  30. break;
  31. case 5:
  32. --
  33. 2.0.0