]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Kill.c
Add data_offset arg to ->init_super and use it in super1.c
[thirdparty/mdadm.git] / Kill.c
diff --git a/Kill.c b/Kill.c
index 6e426c0e3c6661f5d5eaf2963a963f1c5c2bd954..cc2e589301ee8f201c30e68dcfdac08943e803df 100644 (file)
--- 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",