summaryrefslogtreecommitdiffstats
path: root/Create.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-10-04 08:34:20 +0200
committerNeilBrown <neilb@suse.de>2012-10-04 08:34:20 +0200
commit83cd1e97cbc0c4749561b72864dbaaed3a014123 (patch)
tree88259eb678a8a63aa00f062ab8c5a05d75318139 /Create.c
parentAdd data_offset arg to ->validate_geometry. (diff)
downloadmdadm-83cd1e97cbc0c4749561b72864dbaaed3a014123.tar.xz
mdadm-83cd1e97cbc0c4749561b72864dbaaed3a014123.zip
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 'Create.c')
-rw-r--r--Create.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Create.c b/Create.c
index 6a49183d..42c92acb 100644
--- a/Create.c
+++ b/Create.c
@@ -681,7 +681,8 @@ int Create(struct supertype *st, char *mddev,
name += 2;
}
}
- if (!st->ss->init_super(st, &info.array, s->size, name, c->homehost, uuid))
+ if (!st->ss->init_super(st, &info.array, s->size, name, c->homehost, uuid,
+ INVALID_SECTORS))
goto abort_locked;
total_slots = info.array.nr_disks;