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 /Kill.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 'Kill.c')
-rw-r--r-- | Kill.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -63,7 +63,8 @@ int Kill(char *dev, struct supertype *st, int force, int verbose, int noexcl) rv = st->ss->load_super(st, fd, dev); if (rv == 0 || (force && rv >= 2)) { st->ss->free_super(st); - st->ss->init_super(st, NULL, 0, "", NULL, NULL); + st->ss->init_super(st, NULL, 0, "", NULL, NULL, + INVALID_SECTORS); if (st->ss->store_super(st, fd)) { if (verbose >= 0) pr_err("Could not zero superblock on %s\n", |