From 3a8790a13b2236dd27686a02d9f10b4785137238 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Fri, 10 Jan 2003 19:44:14 +0000 Subject: [PATCH] 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(+) diff --git a/sys/geom/geom_bsd.c b/sys/geom/geom_bsd.c index 27c4c8a96e7e..d232fd0d73e9 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); } }