diff options
author | Zhao Heming <heming.zhao@suse.com> | 2020-10-24 11:43:12 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2020-11-26 00:19:49 +0100 |
commit | 9c030dadba89b90a4e52b6afe0290076c809684c (patch) | |
tree | 6fe161976ef300fdd9c2a2e51f4c35ab0eef4622 /mdadm.h | |
parent | mdadm: Unify forks behaviour (diff) | |
download | mdadm-9c030dadba89b90a4e52b6afe0290076c809684c.tar.xz mdadm-9c030dadba89b90a4e52b6afe0290076c809684c.zip |
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>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1455,6 +1455,7 @@ extern int CreateBitmap(char *filename, int force, char uuid[16], unsigned long long array_size, int major); extern int ExamineBitmap(char *filename, int brief, struct supertype *st); +extern int IsBitmapDirty(char *filename); extern int Write_rules(char *rule_name); extern int bitmap_update_uuid(int fd, int *uuid, int swap); |