Show error code when failing to destroy a mirror on delay
Sponsored by: EMC / Isilon Storage Division MFC after: 2 weeks
This commit is contained in:
parent
18755bc3d6
commit
2eab8fff0d
@ -2824,7 +2824,8 @@ g_mirror_destroy_delayed(void *arg, int flag)
|
|||||||
G_MIRROR_DEBUG(1, "Destroying %s (delayed).", sc->sc_name);
|
G_MIRROR_DEBUG(1, "Destroying %s (delayed).", sc->sc_name);
|
||||||
error = g_mirror_destroy(sc, G_MIRROR_DESTROY_SOFT);
|
error = g_mirror_destroy(sc, G_MIRROR_DESTROY_SOFT);
|
||||||
if (error != 0) {
|
if (error != 0) {
|
||||||
G_MIRROR_DEBUG(0, "Cannot destroy %s.", sc->sc_name);
|
G_MIRROR_DEBUG(0, "Cannot destroy %s (error=%d).",
|
||||||
|
sc->sc_name, error);
|
||||||
sx_xunlock(&sc->sc_lock);
|
sx_xunlock(&sc->sc_lock);
|
||||||
}
|
}
|
||||||
g_topology_lock();
|
g_topology_lock();
|
||||||
|
Loading…
Reference in New Issue
Block a user