diff options
author | NeilBrown <neilb@suse.de> | 2009-11-24 16:32:01 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-11-24 16:32:01 +1100 |
commit | 9277cc7752ae6eb4b10dff7b5fc9ec75d3d52b66 (patch) | |
tree | 08d95ee3f170369863288356c84e45d87b93d876 /super0.c | |
parent | 40bc78f5cd292d90917cb0a8c177498a516494c3 (diff) |
Various fixes for --kill
- When --kill-superblock is used with --metadata, find every
different superblock if there are several and kill them all.
- When creating a new array, kill off any old metadata. The code
to do this was already present but has become broken over time.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super0.c')
-rw-r--r-- | super0.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -725,8 +725,8 @@ static int write_init_super0(struct supertype *st) continue; if (di->fd == -1) continue; - Kill(di->devname, 0, 1, 1); - Kill(di->devname, 0, 1, 1); + while (Kill(di->devname, NULL, 0, 1, 1) == 0) + ; sb->disks[di->disk.number].state &= ~(1<<MD_DISK_FAULTY); |