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


_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-geom
To unsubscribe, send any mail to "[email protected]"

Reply via email to