diff options
author | phk <phk@FreeBSD.org> | 2002-04-23 19:54:02 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-04-23 19:54:02 +0000 |
commit | 4ca7562a616825af16d39e04c933c3e66f5a484d (patch) | |
tree | d98d149d2c39244eedf2ae44b65577954046c836 /sys/geom/geom_slice.c | |
parent | 7bef5a6e99f99634b004f29895f8da28f952e212 (diff) | |
download | FreeBSD-src-4ca7562a616825af16d39e04c933c3e66f5a484d.zip FreeBSD-src-4ca7562a616825af16d39e04c933c3e66f5a484d.tar.gz |
Implement the GEOMGETCONF ioctl which returns vital stats for the
current device in XML in an sbuf.
Sponsored by: DARPA & NAI Labs
Diffstat (limited to 'sys/geom/geom_slice.c')
-rw-r--r-- | sys/geom/geom_slice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c index ac05fa6..dc8d3ab 100644 --- a/sys/geom/geom_slice.c +++ b/sys/geom/geom_slice.c @@ -203,7 +203,7 @@ g_slice_dumpconf(struct sbuf *sb, char *indent, struct g_geom *gp, struct g_cons gsp = gp->softc; mp = gsp->softc; - if (gp != NULL) { + if (gp != NULL && (pp == NULL && cp == NULL)) { sbuf_printf(sb, "%s<frontstuff>%llu</frontstuff>\n", indent, (unsigned long long)gsp->frontstuff); } |