From 03f0bdefdedf30ee648673139c6d043380b58d48 Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 10 Jan 2003 19:44:14 +0000 Subject: 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. --- sys/geom/geom_bsd.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sys/geom/geom_bsd.c') 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%jd\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%d\n", indent, + ms->inram.d_partitions[pp->index].p_fstype); } } -- cgit v1.1