diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-09 11:41:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-11-09 11:41:33 +0000 |
commit | e9922970d313f8bbf5440586f3020904ff7e057c (patch) | |
tree | 24090f3abf9370a2ff1ba6327d8c06c068f9c171 /mdmon.h | |
parent | Releasing debian version 4.3+20240723-2. (diff) | |
download | mdadm-e9922970d313f8bbf5440586f3020904ff7e057c.tar.xz mdadm-e9922970d313f8bbf5440586f3020904ff7e057c.zip |
Merging upstream version 4.3+20241108.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mdmon.h')
-rw-r--r-- | mdmon.h | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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); |