summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_slice.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-28 22:43:54 +0000
committerphk <phk@FreeBSD.org>2002-10-28 22:43:54 +0000
commit36b357552e8bf68a082895a618ce8fc14d7b21a8 (patch)
tree8613cc57c380af3393265fdf5313b0a510ee0433 /sys/geom/geom_slice.c
parentbddb286f465cd924b05f4d045c8154af4cd9238f (diff)
downloadFreeBSD-src-36b357552e8bf68a082895a618ce8fc14d7b21a8.zip
FreeBSD-src-36b357552e8bf68a082895a618ce8fc14d7b21a8.tar.gz
Add the remaning part of the new libdisk interaction.
WARNING: This is not a published interface, it is a stopgap measure for WARNING: libdisk so we can get 5.0-R out of the door. Sponsored by: DARPA & NAI Labs
Diffstat (limited to 'sys/geom/geom_slice.c')
-rw-r--r--sys/geom/geom_slice.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/geom/geom_slice.c b/sys/geom/geom_slice.c
index cc67cb9..033713a 100644
--- a/sys/geom/geom_slice.c
+++ b/sys/geom/geom_slice.c
@@ -206,6 +206,12 @@ g_slice_dumpconf(struct sbuf *sb, char *indent, struct g_geom *gp, struct g_cons
struct g_slicer *gsp;
gsp = gp->softc;
+ if (indent == NULL) {
+ sbuf_printf(sb, " i %u", pp->index);
+ sbuf_printf(sb, " o %ju",
+ (uintmax_t)gsp->slices[pp->index].offset);
+ return;
+ }
if (gp != NULL && (pp == NULL && cp == NULL)) {
sbuf_printf(sb, "%s<frontstuff>%ju</frontstuff>\n",
indent, (intmax_t)gsp->frontstuff);
OpenPOWER on IntegriCloud