diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2014-04-21 02:49:41 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2014-04-21 02:49:41 +0000 |
commit | 73c210dce0a1825f0f0a616ee9c1dbb92f9cbf52 (patch) | |
tree | 3ad22e8164350cbe5f228988cd599d6d476562e7 /sys/geom/mirror | |
parent | 5d04f39f50226770489e2aa4dd9a384f174a9e89 (diff) | |
download | FreeBSD-src-73c210dce0a1825f0f0a616ee9c1dbb92f9cbf52.zip FreeBSD-src-73c210dce0a1825f0f0a616ee9c1dbb92f9cbf52.tar.gz |
MFC r264142:
Show error code when failing to destroy a mirror on delay
Diffstat (limited to 'sys/geom/mirror')
-rw-r--r-- | sys/geom/mirror/g_mirror.c | 3 |
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(); |