Minor addition to confdot (w/ patch)
Pokala, Ravi
rpokala at panasas.com
Fri Oct 17 01:26:21 UTC 2014
Hi folks,
The GEOM stack diagrams created by 'sysctl -b kern.geom.confdot' (and then
run through `dot') are really quite handy. One thing that we really needed
at Panasas, but which is not included in the diagram, is the providers'
sectorsize and stripesize. This small change adds that info; if there are
no objections, could someone submit it on my behalf?
Thanks,
Ravi
Index: sys/geom/geom_dump.c
===================================================================
--- sys/geom/geom_dump.c (revision 273186)
+++ sys/geom/geom_dump.c (working copy)
@@ -61,8 +61,8 @@
g_confdot_provider(struct sbuf *sb, struct g_provider *pp)
{
- sbuf_printf(sb, "z%p
[shape=hexagon,label=\"%s\\nr%dw%de%d\\nerr#%d\"];\n",
- pp, pp->name, pp->acr, pp->acw, pp->ace, pp->error);
+ sbuf_printf(sb, "z%p
[shape=hexagon,label=\"%s\\nr%dw%de%d\\nerr#%d\\nsector=%d\\nstripe=%d\"];\
n",
+ pp, pp->name, pp->acr, pp->acw, pp->ace, pp->error, pp->sectorsize,
pp->stripesize);
}
static void
More information about the freebsd-geom
mailing list