diff options
author | NeilBrown <neilb@suse.de> | 2012-10-04 08:34:20 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-10-04 08:34:20 +0200 |
commit | 83cd1e97cbc0c4749561b72864dbaaed3a014123 (patch) | |
tree | 88259eb678a8a63aa00f062ab8c5a05d75318139 /Create.c | |
parent | Add data_offset arg to ->validate_geometry. (diff) | |
download | mdadm-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |