]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mdadm.h
Remove the multiple super_switchs for ddf.
[thirdparty/mdadm.git] / mdadm.h
diff --git a/mdadm.h b/mdadm.h
index e23a7033de0356f803d156c7af835ea11c54a37a..30d7ab7a718ddee400071066efcafdf3b6c58edc 100644 (file)
--- 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,