summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-05-27 09:18:54 +1000
committerNeil Brown <neilb@suse.de>2008-05-27 09:18:54 +1000
commited9d66aadec7ae41751e3a95352628814b47fbad (patch)
tree2a5212c3f1fbc27b09b853c2d582953a7b4e695e /mdadm.h
parent77402e51054701cd02ff07f8d5d43ef23e640226 (diff)
downloadmdadm-ed9d66aadec7ae41751e3a95352628814b47fbad.tar.gz
mdadm-ed9d66aadec7ae41751e3a95352628814b47fbad.tar.xz
mdadm-ed9d66aadec7ae41751e3a95352628814b47fbad.zip
Change mark_clean to set_array_state.
DDF needs more fine grained understanding of the array state.
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/mdadm.h b/mdadm.h
index bf7e296..b6102aa 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -411,16 +411,15 @@ extern struct superswitch {
/* for mdmon */
int (*open_new)(struct supertype *c, struct active_array *a, int inst);
- /* This tells the metadata handler that all data up to sync_pos is
- * known to be insync, and will stay insync until told otherwise.
- * All data beyond sync_pos may not be insync.
- * If sync_pos == 0, this marks the array as 'dirty'.
- * If sync_pos == ~0, this marks it as fully 'clean'.
- * If other numbers cannot be stored, they should be treated as 0.
- * mark_clean is always called with a sync_pos of 0 before any
- * write to an array with redundancy is allowed.
+
+ /* Tell the metadata handler the current state of the array.
+ * This covers whether it is known to be consistent (no pending writes)
+ * when how far along a resync is known to have progressed
+ * (in a->resync_start).
+ * resync status is really irrelevant if the array is not consistent,
+ * but some metadata (DDF!) have a place to record the distinction.
*/
- void (*mark_clean)(struct active_array *a, unsigned long long sync_pos);
+ void (*set_array_state)(struct active_array *a, int consistent);
/* When the state of a device might have changed, we call set_disk to
* tell the metadata what the current state is.