fix(agent): don't warn on mdraid consistency checks (#2067)

This commit is contained in:
Vito Cappello
2026-08-11 15:50:58 -04:00
committed by GitHub
parent 3fac02f0c0
commit bd52134558
2 changed files with 18 additions and 1 deletions

View File

@@ -180,8 +180,13 @@ func mdraidSmartStatus(health mdraidHealth) string {
if health.degraded > 0 {
return "FAILED"
}
if health.mismatchCnt > 0 {
return "WARNING"
}
// "check" scans for consistency problems without repairing mismatches.
// With no mismatches, keep it green while reporting progress attributes.
switch syncAction {
case "check", "repair":
case "repair":
return "WARNING"
}
switch state {