]> www.infradead.org Git - users/jedix/linux-maple.git/commit
md: Report failed arrays as broken in mdstat
authorMateusz Kusiak <mateusz.kusiak@intel.com>
Tue, 3 Sep 2024 14:29:49 +0000 (16:29 +0200)
committerSong Liu <song@kernel.org>
Wed, 4 Sep 2024 21:52:45 +0000 (14:52 -0700)
commit2d2b3bc145b9d5b5c6f07d22291723ddb024ca76
treec8ab72524925ba42d79e190eb703b97856972957
parentfb16787b396c46158e46b588d357dea4e090020b
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>
drivers/md/md.c