dcavalca / rpms / mdadm

Forked from rpms/mdadm 3 years ago
Clone

Blame SOURCES/0057-Change-warning-message.patch

8e8941
From 1a87493014050e3bd94000cd36122c3cadf21270 Mon Sep 17 00:00:00 2001
8e8941
From: Kinga Tanska <kinga.tanska@intel.com>
8e8941
Date: Tue, 10 Dec 2019 12:21:21 +0100
8e8941
Subject: [RHEL8.2 PATCH 57/61] Change warning message
8e8941
8e8941
In commit 039b7225e6 ("md: allow creation of mdNNN arrays via
8e8941
md_mod/parameters/new_array") support for name like mdNNN
8e8941
was added. Special warning, when kernel is unable to handle
8e8941
request, was added in commit 7105228e19
8e8941
("mdadm/mdopen: create new function create_named_array for
8e8941
writing to new_array"), but it was not adequate enough,
8e8941
because in this situation mdadm tries to do it in old way.
8e8941
This commit changes warning to be more relevant when
8e8941
creating RAID container with "/dev/mdNNN" name and mdadm
8e8941
back to old approach.
8e8941
8e8941
Signed-off-by: Kinga Tanska <kinga.tanska@intel.com>
8e8941
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
8e8941
---
8e8941
 mdopen.c | 3 ++-
8e8941
 1 file changed, 2 insertions(+), 1 deletion(-)
8e8941
8e8941
diff --git a/mdopen.c b/mdopen.c
8e8941
index 98c54e4..245be53 100644
8e8941
--- a/mdopen.c
8e8941
+++ b/mdopen.c
8e8941
@@ -120,7 +120,8 @@ int create_named_array(char *devnm)
8e8941
 		close(fd);
8e8941
 	}
8e8941
 	if (fd < 0 || n != (int)strlen(devnm)) {
8e8941
-		pr_err("Fail create %s when using %s\n", devnm, new_array_file);
8e8941
+		pr_err("Fail to create %s when using %s, fallback to creation via node\n",
8e8941
+			devnm, new_array_file);
8e8941
 		return 0;
8e8941
 	}
8e8941
 
8e8941
-- 
8e8941
2.7.5
8e8941