summaryrefslogtreecommitdiff
path: root/mdadm.h
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-10-04 16:34:20 +1000
committerNeilBrown <neilb@suse.de>2012-10-04 16:34:20 +1000
commit83cd1e97cbc0c4749561b72864dbaaed3a014123 (patch)
tree88259eb678a8a63aa00f062ab8c5a05d75318139 /mdadm.h
parentaf4348ddd101b8cb0ffc303f43544f49419a1658 (diff)
Add data_offset arg to ->init_super and use it in super1.c
So if ->data_offset is already set, use that rather than computing one. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r--mdadm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdadm.h b/mdadm.h
index 04e7d0fc..425cac39 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -726,7 +726,8 @@ extern struct superswitch {
*/
int (*init_super)(struct supertype *st, mdu_array_info_t *info,
unsigned long long size, char *name,
- char *homehost, int *uuid);
+ char *homehost, int *uuid,
+ unsigned long long data_offset);
/* update the metadata to include new device, either at create or
* when hot-adding a spare.