summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_bsd.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2003-01-10 19:44:14 +0000
committerjhb <jhb@FreeBSD.org>2003-01-10 19:44:14 +0000
commit03f0bdefdedf30ee648673139c6d043380b58d48 (patch)
tree28a35095889b1b6967d8af77f671663504ce6967 /sys/geom/geom_bsd.c
parent533d214b966f695a9fa4dee381b20aa03e6b4a91 (diff)
downloadFreeBSD-src-03f0bdefdedf30ee648673139c6d043380b58d48.zip
FreeBSD-src-03f0bdefdedf30ee648673139c6d043380b58d48.tar.gz
Output the fstype of each partition in a disklabel in the configuration
text similar to the way that the MBR module dumps its slice types.
Diffstat (limited to 'sys/geom/geom_bsd.c')
-rw-r--r--sys/geom/geom_bsd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/geom/geom_bsd.c b/sys/geom/geom_bsd.c
index 27c4c8a..d232fd0 100644
--- a/sys/geom/geom_bsd.c
+++ b/sys/geom/geom_bsd.c
@@ -696,6 +696,13 @@ g_bsd_dumpconf(struct sbuf *sb, const char *indent, struct g_geom *gp, struct g_
indent, (intmax_t)ms->rawoffset);
sbuf_printf(sb, "%s<mbroffset>%jd</mbroffset>\n",
indent, (intmax_t)ms->mbroffset);
+ } else if (pp != NULL) {
+ if (indent == NULL)
+ sbuf_printf(sb, " ty %d",
+ ms->inram.d_partitions[pp->index].p_fstype);
+ else
+ sbuf_printf(sb, "%s<type>%d</type>\n", indent,
+ ms->inram.d_partitions[pp->index].p_fstype);
}
}
OpenPOWER on IntegriCloud