diff options
author | pjd <pjd@FreeBSD.org> | 2004-07-26 17:14:47 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-07-26 17:14:47 +0000 |
commit | 73a684d5877f06cfed5b965bce4980dc1d1f3e5e (patch) | |
tree | 376311136ec2ae90ae2a302bbc4edad2094096dd /sys/geom/nop/g_nop.c | |
parent | 3a2f13d5f5f45530d066bd48f5c672989bc023c1 (diff) | |
download | FreeBSD-src-73a684d5877f06cfed5b965bce4980dc1d1f3e5e.zip FreeBSD-src-73a684d5877f06cfed5b965bce4980dc1d1f3e5e.tar.gz |
Improve geom(8)'s 'list' command to show geoms and their providers and
consumers. Teach STRIPE, CONCAT and NOP classes about this improvement.
Diffstat (limited to 'sys/geom/nop/g_nop.c')
-rw-r--r-- | sys/geom/nop/g_nop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/geom/nop/g_nop.c b/sys/geom/nop/g_nop.c index 00860f1..88283ee 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<offset>%jd</offset>\n", indent, + sbuf_printf(sb, "%s<Offset>%jd</Offset>\n", indent, (intmax_t)sc->sc_offset); - sbuf_printf(sb, "%s<failprob>%u</failprob>\n", indent, sc->sc_failprob); + sbuf_printf(sb, "%s<Failprob>%u</Failprob>\n", indent, sc->sc_failprob); } DECLARE_GEOM_CLASS(g_nop_class, g_nop); |