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.
This commit is contained in:
John Baldwin 2003-01-10 19:44:14 +00:00
parent 53465bf736
commit 3a8790a13b

View File

@ -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);
}
}