Now, when force device destruction is done on shutdown, hide warning,

that device cannot be destroyed immediately, under debug=1.

Suggested by:	simon
This commit is contained in:
Pawel Jakub Dawidek 2004-12-21 19:50:18 +00:00
parent e306ffca86
commit 4485f00081
2 changed files with 2 additions and 2 deletions

View File

@ -2536,7 +2536,7 @@ g_mirror_destroy(struct g_mirror_softc *sc, boolean_t force)
pp = sc->sc_provider;
if (pp != NULL && (pp->acr != 0 || pp->acw != 0 || pp->ace != 0)) {
if (force) {
G_MIRROR_DEBUG(0, "Device %s is still open, so it "
G_MIRROR_DEBUG(1, "Device %s is still open, so it "
"can't be definitely removed.", pp->name);
} else {
G_MIRROR_DEBUG(1,

View File

@ -2765,7 +2765,7 @@ g_raid3_destroy(struct g_raid3_softc *sc, boolean_t force)
pp = sc->sc_provider;
if (pp != NULL && (pp->acr != 0 || pp->acw != 0 || pp->ace != 0)) {
if (force) {
G_RAID3_DEBUG(0, "Device %s is still open, so it "
G_RAID3_DEBUG(1, "Device %s is still open, so it "
"can't be definitely removed.", pp->name);
} else {
G_RAID3_DEBUG(1,