diff options
author | Neil Brown <neilb@suse.de> | 2008-07-12 20:27:39 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2008-07-12 20:27:39 +1000 |
commit | 78e449282e0c0629089f2bd15e79e0c723a84cb3 (patch) | |
tree | da7834d0ab84c110bd2166f7154380f1daebc2e8 /mdadm.h | |
parent | ba7eb04f71b0f5add796bd94319d1a0671b566de (diff) | |
download | mdadm-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.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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, |