Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 May 2014 16:08:16 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r266445 - head/sys/geom
Message-ID:  <201405191608.s4JG8Ge6043691@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Mon May 19 16:08:15 2014
New Revision: 266445
URL: http://svnweb.freebsd.org/changeset/base/266445

Log:
  Add a topology trace to the g_spoil_event.
  
  MFC after:	1 week

Modified:
  head/sys/geom/geom_subr.c

Modified: head/sys/geom/geom_subr.c
==============================================================================
--- head/sys/geom/geom_subr.c	Mon May 19 16:05:42 2014	(r266444)
+++ head/sys/geom/geom_subr.c	Mon May 19 16:08:15 2014	(r266445)
@@ -1071,6 +1071,8 @@ g_spoil_event(void *arg, int flag)
 		return;
 	pp = arg;
 	G_VALID_PROVIDER(pp);
+	g_trace(G_T_TOPOLOGY, "%s %p(%s:%s:%s)", __func__, pp,
+	    pp->geom->class->name, pp->geom->name, pp->name);
 	for (cp = LIST_FIRST(&pp->consumers); cp != NULL; cp = cp2) {
 		cp2 = LIST_NEXT(cp, consumers);
 		if ((cp->flags & G_CF_SPOILED) == 0)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405191608.s4JG8Ge6043691>