summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorZhao Heming <heming.zhao@suse.com>2020-10-24 11:43:12 +0200
committerJes Sorensen <jsorensen@fb.com>2020-11-26 00:19:49 +0100
commit9c030dadba89b90a4e52b6afe0290076c809684c (patch)
tree6fe161976ef300fdd9c2a2e51f4c35ab0eef4622 /mdadm.h
parentmdadm: Unify forks behaviour (diff)
downloadmdadm-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index 56b1b197..1ee6c92e 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -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);