dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/imsm-fix-missing-error-message-during-migration1.patch

b7f731
From 565cc99e341b3021ad26ff6da19a67d4e4abffde Mon Sep 17 00:00:00 2001
b7f731
From: Pawel Baldysiak <pawel.baldysiak@intel.com>
b7f731
Date: Tue, 24 Jan 2017 14:29:33 +0100
b7f731
Subject: [RHEL7.5 PATCH 002/169] imsm: fix missing error message during
b7f731
 migration
b7f731
b7f731
If user tries to migrate from raid0 to raid5 and there is no spare
b7f731
drive to perform it - mdadm will exit with errorcode, but
b7f731
no error message is printed.
b7f731
b7f731
Print error instead of debug message when this condition occurs,
b7f731
so user is informed why requested migration is not started.
b7f731
b7f731
Signed-off-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
b7f731
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
b7f731
---
b7f731
 super-intel.c | 2 +-
b7f731
 1 file changed, 1 insertion(+), 1 deletion(-)
b7f731
b7f731
diff --git a/super-intel.c b/super-intel.c
b7f731
index 433bb6d..d5e9517 100644
b7f731
--- a/super-intel.c
b7f731
+++ b/super-intel.c
b7f731
@@ -10718,7 +10718,7 @@ static int imsm_create_metadata_update_for_migration(
b7f731
 			free(u);
b7f731
 			sysfs_free(spares);
b7f731
 			update_memory_size = 0;
b7f731
-			dprintf("error: cannot get spare device for requested migration");
b7f731
+			pr_err("cannot get spare device for requested migration\n");
b7f731
 			return 0;
b7f731
 		}
b7f731
 		sysfs_free(spares);
b7f731
-- 
b7f731
2.7.4
b7f731