summaryrefslogtreecommitdiff
path: root/sys/geom/geom_disk.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2002-10-28 22:43:54 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2002-10-28 22:43:54 +0000
commitd518e53936880690b1dd9e9bfb117ff205f4e589 (patch)
tree8613cc57c380af3393265fdf5313b0a510ee0433 /sys/geom/geom_disk.c
parent89f4551e95a32a614530f7a4e745e2daab1a4426 (diff)
downloadsrc-test-d518e53936880690b1dd9e9bfb117ff205f4e589.tar.gz
src-test-d518e53936880690b1dd9e9bfb117ff205f4e589.zip
Notes
Diffstat (limited to 'sys/geom/geom_disk.c')
-rw-r--r--sys/geom/geom_disk.c5
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);