mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
When trashing metadata, flush after each write.
MFC after: 1 week
This commit is contained in:
parent
ce7704b610
commit
5e6dce4bf0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213055
@ -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