summaryrefslogtreecommitdiff
path: root/Kill.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-08-01 12:21:19 +1000
committerNeilBrown <neilb@suse.de>2011-08-01 12:21:19 +1000
commit4a96d9ff4f03f70d35026e5cf0d1189292d62cfd (patch)
tree89c3dff1eedb9b0398288b9e438a0608076b89dd /Kill.c
parent6560987b25a88f78ed53d37525d363c126a07b79 (diff)
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>
Diffstat (limited to 'Kill.c')
-rw-r--r--Kill.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kill.c b/Kill.c
index 29a43ea6..b841a5b7 100644
--- a/Kill.c
+++ b/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 */