summaryrefslogtreecommitdiffstats
path: root/Kill.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 /Kill.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 'Kill.c')
-rw-r--r--Kill.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kill.c b/Kill.c
index 6e426c0e..cc2e5893 100644
--- a/Kill.c
+++ b/Kill.c
@@ -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",