]>
git.ipfire.org Git - thirdparty/mdadm.git/blob - mdmon.h
2 enum array_state
{ clear
, inactive
, suspended
, readonly
, read_auto
,
3 clean
, active
, write_pending
, active_idle
, bad_word
};
5 enum sync_action
{ idle
, reshape
, resync
, recover
, check
, repair
, bad_action
};
10 struct supertype
*container
;
11 struct active_array
*next
, *replaces
;
17 enum array_state prev_state
, curr_state
, next_state
;
18 enum sync_action prev_action
, curr_action
, next_action
;
22 unsigned long long sync_pos
;
23 unsigned long long resync_start
;
30 extern struct active_array
*container
;
31 extern struct active_array
*array_list
;
32 extern struct active_array
*discard_this
;
33 extern struct active_array
*pending_discard
;
36 void do_monitor(struct supertype
*container
);
37 void do_manager(struct supertype
*container
);
39 int read_dev_state(int fd
);
41 struct mdstat_ent
*mdstat_read(int hold
, int start
);
43 extern struct superswitch super_ddf
, super_ddf_bvd
, super_ddf_svd
;