From 1d723f1d518b79fdea655f82e5419ae4888ad78c Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Mon, 26 Jul 2004 17:14:47 +0000 Subject: Improve geom(8)'s 'list' command to show geoms and their providers and consumers. Teach STRIPE, CONCAT and NOP classes about this improvement. --- sys/geom/nop/g_nop.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/geom/nop') diff --git a/sys/geom/nop/g_nop.c b/sys/geom/nop/g_nop.c index 00860f12d228..88283eef3d21 100644 --- a/sys/geom/nop/g_nop.c +++ b/sys/geom/nop/g_nop.c @@ -468,12 +468,12 @@ g_nop_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, { struct g_nop_softc *sc; - if (pp == NULL) + if (pp != NULL || cp != NULL) return; sc = gp->softc; - sbuf_printf(sb, "%s%jd\n", indent, + sbuf_printf(sb, "%s%jd\n", indent, (intmax_t)sc->sc_offset); - sbuf_printf(sb, "%s%u\n", indent, sc->sc_failprob); + sbuf_printf(sb, "%s%u\n", indent, sc->sc_failprob); } DECLARE_GEOM_CLASS(g_nop_class, g_nop); -- cgit v1.2.3