summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKinga Tanska <kinga.tanska@intel.com>2021-10-12 12:16:16 +0200
committerJes Sorensen <jsorensen@fb.com>2021-10-19 02:50:34 -0400
commitd64a37b9bf4609444161a73cf8a48b17684b0229 (patch)
treeb589feda2b2478766d2ad244fd5f9f187d292904
parent5f6dedfb86d616a7f340e2627f4bbc1e58b63e15 (diff)
downloadmdadm-d64a37b9bf4609444161a73cf8a48b17684b0229.tar.gz
Assemble: apply sysfs rules
During assemblation container with quiet flag, sysfs rules are not applied. This commit makes sysfs_rules_apply() independent from verbose condition. Signed-off-by: Kinga Tanska <kinga.tanska@intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
-rw-r--r--Assemble.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Assemble.c b/Assemble.c
index 0df46244..20fd97b5 100644
--- a/Assemble.c
+++ b/Assemble.c
@@ -1125,6 +1125,7 @@ static int start_array(int mdfd,
}
if (content->array.level == LEVEL_CONTAINER) {
+ sysfs_rules_apply(mddev, content);
if (c->verbose >= 0) {
pr_err("Container %s has been assembled with %d drive%s",
mddev, okcnt + sparecnt + journalcnt,
@@ -1132,10 +1133,8 @@ static int start_array(int mdfd,
if (okcnt < (unsigned)content->array.raid_disks)
fprintf(stderr, " (out of %d)\n",
content->array.raid_disks);
- else {
+ else
fprintf(stderr, "\n");
- sysfs_rules_apply(mddev, content);
- }
}
if (st->ss->validate_container) {