]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm/Detail: show correct state for clustered array
authorZhao Heming <heming.zhao@suse.com>
Sat, 24 Oct 2020 09:43:12 +0000 (17:43 +0800)
committerJes Sorensen <jsorensen@fb.com>
Wed, 25 Nov 2020 23:19:49 +0000 (18:19 -0500)
commit9c030dadba89b90a4e52b6afe0290076c809684c
tree6fe161976ef300fdd9c2a2e51f4c35ab0eef4622
parentff6bb131a46e1bac84a26e5b2c4bf408c0e56926
mdadm/Detail: show correct state for clustered array

After kernel md module commit 480523feae581, in clustered env,
mddev->in_sync always zero, it will make array.state never set
up MD_SB_CLEAN. it causes "mdadm -D /dev/mdX" show state 'active'
all the time.

bitmap.c: add a new API IsBitmapDirty() to support inquiry bitmap
dirty or clean.

Signed-off-by: Zhao Heming <heming.zhao@suse.com>
Detail.c
bitmap.c
mdadm.h