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