Ignore errors from BIO_FLUSH. It might confuse users that provider wasn't

really killed. What we really care about are write errors only.

MFC after:	2 weeks
This commit is contained in:
Pawel Jakub Dawidek 2010-09-25 10:31:05 +00:00
parent 8be6abcdc6
commit 350e8df8de

View File

@ -688,7 +688,7 @@ g_eli_ctl_delkey(struct gctl_req *req, struct g_class *mp)
* Flush write cache so we don't overwrite data N times in cache
* and only once on disk.
*/
g_io_flush(cp);
(void)g_io_flush(cp);
}
bzero(&md, sizeof(md));
bzero(sector, sizeof(sector));
@ -739,13 +739,11 @@ 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;
}
/*
* Flush write cache so we don't overwrite data N times
* in cache and only once on disk.
*/
(void)g_io_flush(cp);
}
free(sector, M_ELI);
}