From 17e0c4331958b68e14f84ad155e39ae813a3b242 Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Mon, 19 May 2014 16:08:15 +0000 Subject: [PATCH] Add a topology trace to the g_spoil_event. MFC after: 1 week --- sys/geom/geom_subr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/geom/geom_subr.c b/sys/geom/geom_subr.c index 6793373c09d5..f42aae51109b 100644 --- a/sys/geom/geom_subr.c +++ b/sys/geom/geom_subr.c @@ -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)