1
0
Fork 0

Merging upstream version 4.3+20241108.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-14 06:11:53 +01:00
parent 1e24552bfc
commit 60ccb5b596
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
64 changed files with 2015 additions and 1768 deletions

12
mdmon.h
View file

@ -48,8 +48,14 @@ struct active_array {
enum array_state prev_state, curr_state, next_state;
enum sync_action prev_action, curr_action, next_action;
int check_degraded; /* flag set by mon, read by manage */
int check_reshape; /* flag set by mon, read by manage */
bool check_degraded : 1; /* flag set by mon, read by manage */
bool check_reshape : 1; /* flag set by mon, read by manage */
/**
* Signalize managemon there is a mdi to be removed.
* Monitor must acknowledge faulty state first.
*/
bool check_member_remove : 1;
};
/*
@ -78,7 +84,7 @@ void do_manager(struct supertype *container);
extern int sigterm;
int read_dev_state(int fd);
int is_container_member(struct mdstat_ent *mdstat, char *container);
bool is_container_member(struct mdstat_ent *mdstat, char *container);
struct mdstat_ent *mdstat_read(int hold, int start);