summaryrefslogtreecommitdiffstats
path: root/sys/geom/mirror
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2014-04-05 03:01:29 +0000
committerbdrewery <bdrewery@FreeBSD.org>2014-04-05 03:01:29 +0000
commit2eab8fff0d6a3b3b357d2fefc7675a4291800d7d (patch)
tree4696b4bc41665569d8ef655c66933370caafeaaa /sys/geom/mirror
parent18755bc3d66030cca9fe9e3539841ab5d8df891c (diff)
downloadFreeBSD-src-2eab8fff0d6a3b3b357d2fefc7675a4291800d7d.zip
FreeBSD-src-2eab8fff0d6a3b3b357d2fefc7675a4291800d7d.tar.gz
Show error code when failing to destroy a mirror on delay
Sponsored by: EMC / Isilon Storage Division MFC after: 2 weeks
Diffstat (limited to 'sys/geom/mirror')
-rw-r--r--sys/geom/mirror/g_mirror.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c
index beb473f..e4dffdc 100644
--- a/sys/geom/mirror/g_mirror.c
+++ b/sys/geom/mirror/g_mirror.c
@@ -2824,7 +2824,8 @@ g_mirror_destroy_delayed(void *arg, int flag)
G_MIRROR_DEBUG(1, "Destroying %s (delayed).", sc->sc_name);
error = g_mirror_destroy(sc, G_MIRROR_DESTROY_SOFT);
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);
}
g_topology_lock();
OpenPOWER on IntegriCloud