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:
parent
e306ffca86
commit
4485f00081
@ -2536,7 +2536,7 @@ g_mirror_destroy(struct g_mirror_softc *sc, boolean_t force)
|
|||||||
pp = sc->sc_provider;
|
pp = sc->sc_provider;
|
||||||
if (pp != NULL && (pp->acr != 0 || pp->acw != 0 || pp->ace != 0)) {
|
if (pp != NULL && (pp->acr != 0 || pp->acw != 0 || pp->ace != 0)) {
|
||||||
if (force) {
|
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);
|
"can't be definitely removed.", pp->name);
|
||||||
} else {
|
} else {
|
||||||
G_MIRROR_DEBUG(1,
|
G_MIRROR_DEBUG(1,
|
||||||
|
@ -2765,7 +2765,7 @@ g_raid3_destroy(struct g_raid3_softc *sc, boolean_t force)
|
|||||||
pp = sc->sc_provider;
|
pp = sc->sc_provider;
|
||||||
if (pp != NULL && (pp->acr != 0 || pp->acw != 0 || pp->ace != 0)) {
|
if (pp != NULL && (pp->acr != 0 || pp->acw != 0 || pp->ace != 0)) {
|
||||||
if (force) {
|
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);
|
"can't be definitely removed.", pp->name);
|
||||||
} else {
|
} else {
|
||||||
G_RAID3_DEBUG(1,
|
G_RAID3_DEBUG(1,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user