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>
This commit is contained in:
parent
5f6dedfb86
commit
d64a37b9bf
|
@ -1125,6 +1125,7 @@ static int start_array(int mdfd,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (content->array.level == LEVEL_CONTAINER) {
|
if (content->array.level == LEVEL_CONTAINER) {
|
||||||
|
sysfs_rules_apply(mddev, content);
|
||||||
if (c->verbose >= 0) {
|
if (c->verbose >= 0) {
|
||||||
pr_err("Container %s has been assembled with %d drive%s",
|
pr_err("Container %s has been assembled with %d drive%s",
|
||||||
mddev, okcnt + sparecnt + journalcnt,
|
mddev, okcnt + sparecnt + journalcnt,
|
||||||
|
@ -1132,10 +1133,8 @@ static int start_array(int mdfd,
|
||||||
if (okcnt < (unsigned)content->array.raid_disks)
|
if (okcnt < (unsigned)content->array.raid_disks)
|
||||||
fprintf(stderr, " (out of %d)\n",
|
fprintf(stderr, " (out of %d)\n",
|
||||||
content->array.raid_disks);
|
content->array.raid_disks);
|
||||||
else {
|
else
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
sysfs_rules_apply(mddev, content);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (st->ss->validate_container) {
|
if (st->ss->validate_container) {
|
||||||
|
|
Loading…
Reference in New Issue