svn commit: r264715 - stable/9/sys/geom/mirror
Bryan Drewery
bdrewery at FreeBSD.org
Mon Apr 21 02:52:09 UTC 2014
Author: bdrewery
Date: Mon Apr 21 02:52:08 2014
New Revision: 264715
URL: http://svnweb.freebsd.org/changeset/base/264715
Log:
MFC r264142:
Show error code when failing to destroy a mirror on delay
Modified:
stable/9/sys/geom/mirror/g_mirror.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/geom/mirror/g_mirror.c
==============================================================================
--- stable/9/sys/geom/mirror/g_mirror.c Mon Apr 21 02:50:42 2014 (r264714)
+++ stable/9/sys/geom/mirror/g_mirror.c Mon Apr 21 02:52:08 2014 (r264715)
@@ -2802,7 +2802,8 @@ g_mirror_destroy_delayed(void *arg, int
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();
More information about the svn-src-stable-9
mailing list