Add some more settings of ignore_hw_compat
There are some more times when we don't care that the hardware doesn't support the metadata: - when removing old metadata - when reporting the metadata present before over-writing it. So set ignore_hw_compat in these cases. Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
6560987b25
commit
4a96d9ff4f
1
Kill.c
1
Kill.c
|
@ -59,6 +59,7 @@ int Kill(char *dev, struct supertype *st, int force, int quiet, int noexcl)
|
|||
close(fd);
|
||||
return 2;
|
||||
}
|
||||
st->ignore_hw_compat = 1;
|
||||
rv = st->ss->load_super(st, fd, dev);
|
||||
if (force && rv >= 2)
|
||||
rv = 0; /* ignore bad data in superblock */
|
||||
|
|
Loading…
Reference in New Issue