summaryrefslogtreecommitdiffstats
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2008-07-12 20:27:39 +1000
committerNeil Brown <neilb@suse.de>2008-07-12 20:27:39 +1000
commit78e449282e0c0629089f2bd15e79e0c723a84cb3 (patch)
treeda7834d0ab84c110bd2166f7154380f1daebc2e8 /mdadm.h
parentba7eb04f71b0f5add796bd94319d1a0671b566de (diff)
downloadmdadm-78e449282e0c0629089f2bd15e79e0c723a84cb3.tar.gz
mdadm-78e449282e0c0629089f2bd15e79e0c723a84cb3.tar.xz
mdadm-78e449282e0c0629089f2bd15e79e0c723a84cb3.zip
Remove the multiple super_switchs for ddf.
It is simpler if there is just one, and the methods make decisions as appropriate.
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/mdadm.h b/mdadm.h
index e23a703..30d7ab7 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -501,6 +501,15 @@ extern struct superswitch {
void (*locate_bitmap)(struct supertype *st, int fd);
int (*write_bitmap)(struct supertype *st, int fd);
void (*free_super)(struct supertype *st);
+
+ /* validate_geometry is called with an st returned by
+ * match_metadata_desc.
+ * It should check that the geometry described in compatible with
+ * the metadata type. It will be called repeatedly as devices
+ * added to validate changing size and new devices. If there are
+ * inter-device dependencies, it should record sufficient details
+ * so these can be validated.
+ */
int (*validate_geometry)(struct supertype *st, int level, int layout,
int raiddisks,
int chunk, unsigned long long size,