diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-28 22:43:54 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-28 22:43:54 +0000 |
commit | d518e53936880690b1dd9e9bfb117ff205f4e589 (patch) | |
tree | 8613cc57c380af3393265fdf5313b0a510ee0433 /sys/geom/geom_disk.c | |
parent | 89f4551e95a32a614530f7a4e745e2daab1a4426 (diff) | |
download | src-test-d518e53936880690b1dd9e9bfb117ff205f4e589.tar.gz src-test-d518e53936880690b1dd9e9bfb117ff205f4e589.zip |
Notes
Diffstat (limited to 'sys/geom/geom_disk.c')
-rw-r--r-- | sys/geom/geom_disk.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c index b919cd4741b50..0379fabd73e5a 100644 --- a/sys/geom/geom_disk.c +++ b/sys/geom/geom_disk.c @@ -208,6 +208,11 @@ g_disk_dumpconf(struct sbuf *sb, char *indent, struct g_geom *gp, struct g_consu struct disk *dp; dp = gp->softc; + if (indent == NULL) { + sbuf_printf(sb, " hd %u", dp->d_fwheads); + sbuf_printf(sb, " sc %u", dp->d_fwsectors); + return; + } if (pp != NULL) { sbuf_printf(sb, "%s<fwheads>%u</fwheads>\n", indent, dp->d_fwheads); |