]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdmon.h
intel,ddf: don't require partitions when ignore_hw_compat is set.
[thirdparty/mdadm.git] / mdmon.h
diff --git a/mdmon.h b/mdmon.h
index 4494085326bc4b64dea735f3717cb46759cd54ca..21cf71d5c6ac774cca9d2bbb7179e743a4f278ce 100644 (file)
--- a/mdmon.h
+++ b/mdmon.h
@@ -28,17 +28,26 @@ struct active_array {
        struct mdinfo info;
        struct supertype *container;
        struct active_array *next, *replaces;
+       int to_remove;
 
        int action_fd;
        int resync_start_fd;
        int metadata_fd; /* for monitoring rw/ro status */
+       int sync_completed_fd; /* for checkpoint notification events */
+       unsigned long long last_checkpoint; /* sync_completed fires for many
+                                            * reasons this field makes sure the
+                                            * kernel has made progress before
+                                            * moving the checkpoint.  It is
+                                            * cleared by the metadata handler
+                                            * when it determines recovery is
+                                            * terminated.
+                                            */
 
        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 devnum;
+       int check_reshape; /* flag set by mon, read by manage */
 };
 
 /*
@@ -65,9 +74,6 @@ extern struct md_generic_cmd *active_cmd;
 void remove_pidfile(char *devname);
 void do_monitor(struct supertype *container);
 void do_manager(struct supertype *container);
-int make_control_sock(char *devname);
-int make_pidfile(char *devname, int o_excl);
-extern int socket_hup_requested;
 extern int sigterm;
 
 int read_dev_state(int fd);