summaryrefslogtreecommitdiff
path: root/Kill.c
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
commit83cd1e97cbc0c4749561b72864dbaaed3a014123 (patch)
tree88259eb678a8a63aa00f062ab8c5a05d75318139 /Kill.c
parentaf4348ddd101b8cb0ffc303f43544f49419a1658 (diff)
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",