diff options
author | Neil Brown <neilb@suse.de> | 2008-06-12 10:13:23 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2008-06-12 10:13:23 +1000 |
commit | 2e735d198233a67f305862f72e3a5d0f0c3c548c (patch) | |
tree | 8dad807f9ed77f623ad5cf70900eab23054a552e /mdadm.h | |
parent | b22806772072a3c9a3a7fa406fb573294cb4388b (diff) | |
download | mdadm-2e735d198233a67f305862f72e3a5d0f0c3c548c.tar.gz mdadm-2e735d198233a67f305862f72e3a5d0f0c3c548c.tar.xz mdadm-2e735d198233a67f305862f72e3a5d0f0c3c548c.zip |
Allow passing metadata update to the monitor.
Code in manager can now just call queue_metadata_update with a
(freeable) buf holding the update, and it will get passed to the
monitor and written out.
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -372,6 +372,7 @@ extern mapping_t r5layout[], pers[], modes[], faultylayout[]; extern char *map_dev(int major, int minor, int create); struct active_array; +struct metadata_update; extern struct superswitch { void (*examine_super)(struct supertype *st, char *homehost); @@ -433,7 +434,9 @@ extern struct superswitch { * not in fact changed. */ void (*set_disk)(struct active_array *a, int n, int state); - void (*sync_metadata)(struct active_array *a); + void (*sync_metadata)(struct supertype *st); + void (*process_update)(struct supertype *st, + struct metadata_update *update); int major; |