Commit 2d2b3bc
md: Report failed arrays as broken in mdstat
Depending on if array has personality, it is either reported as active or
inactive. This patch adds third status "broken" for arrays with
personality that became inoperative. The reason is end users tend to
assume that "active" indicates array is operational.
Add "broken" state for inoperative arrays with personality and refactor
the code.
Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com>
Link: https://lore.kernel.org/r/20240903142949.53628-1-mateusz.kusiak@intel.com
Signed-off-by: Song Liu <song@kernel.org>1 parent fb16787 commit 2d2b3bc
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8327 | 8327 | | |
8328 | 8328 | | |
8329 | 8329 | | |
8330 | | - | |
8331 | | - | |
| 8330 | + | |
8332 | 8331 | | |
| 8332 | + | |
| 8333 | + | |
| 8334 | + | |
| 8335 | + | |
8333 | 8336 | | |
8334 | 8337 | | |
8335 | 8338 | | |
8336 | 8339 | | |
8337 | 8340 | | |
| 8341 | + | |
| 8342 | + | |
8338 | 8343 | | |
8339 | 8344 | | |
8340 | 8345 | | |
| |||
0 commit comments