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
commit387fcd593c7a257618fa11ed4cf57d655ace4ada (patch)
treeb5e6a792a4d2af72f1cebad4a92c3e6a58bd5ade /mdadm.h
parent822e393a050510b0002bdfb1b0554fa8d7860a99 (diff)
Add data_offset arg to ->avail_size
This is currently only useful for 1.x metadata and will allow an explicit --data-offset request on command line. 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 6db7714a..322af06d 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -750,7 +750,8 @@ extern struct superswitch {
int (*load_super)(struct supertype *st, int fd, char *devname);
int (*load_container)(struct supertype *st, int fd, char *devname);
struct supertype * (*match_metadata_desc)(char *arg);
- __u64 (*avail_size)(struct supertype *st, __u64 size);
+ __u64 (*avail_size)(struct supertype *st, __u64 size,
+ unsigned long long data_offset);
unsigned long long (*min_acceptable_spare_size)(struct supertype *st);
int (*add_internal_bitmap)(struct supertype *st, int *chunkp,
int delay, int write_behind,