When trashing metadata, flush after each write.
MFC after: 1 week
This commit is contained in:
parent
ce7704b610
commit
5e6dce4bf0
@ -739,6 +739,13 @@ g_eli_kill_one(struct g_eli_softc *sc)
|
||||
if (error == 0)
|
||||
error = err;
|
||||
}
|
||||
err = g_io_flush(cp);
|
||||
if (err != 0) {
|
||||
G_ELI_DEBUG(0, "Cannot flush %s (error=%d).",
|
||||
pp->name, err);
|
||||
if (error == 0)
|
||||
error = err;
|
||||
}
|
||||
}
|
||||
free(sector, M_ELI);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user