diff options
author | Neil Brown <neilb@suse.de> | 2005-06-08 01:03:45 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2005-06-08 01:03:45 +0200 |
commit | 96395475fca10d5ee665d6aceb60edacdd7c77dc (patch) | |
tree | 0e4a63203bd0ee3729a578d2025119e4fa98f4fe /Kill.c | |
parent | Fix type - MD_SB_CLEAN is a bit number, not a bitmask. (diff) | |
download | mdadm-96395475fca10d5ee665d6aceb60edacdd7c77dc.tar.xz mdadm-96395475fca10d5ee665d6aceb60edacdd7c77dc.zip |
Make --zero-superblock work for version 1 superblocks.
This requires passing the supertype to store_super
Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Diffstat (limited to 'Kill.c')
-rw-r--r-- | Kill.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -63,8 +63,8 @@ int Kill(char *dev, int force) mdu_array_info_t info; info.major_version = -1; /* zero superblock */ free(super); - st->ss->init_super(&super, &info); - if (st->ss->store_super(fd, super)) { + st->ss->init_super(st, &super, &info); + if (st->ss->store_super(st, fd, super)) { fprintf(stderr, Name ": Could not zero superblock on %s\n", dev); rv = 1; |