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:
parent
53465bf736
commit
3a8790a13b
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user