- Skip providers with 0 sectorsize. - Dump disk number. - Make kern.geom.stripe.debug sysctl tunable. --- g_stripe.c Wed Aug 11 14:57:17 2004 +++ sys/geom/stripe/g_stripe.c Mon Aug 30 20:50:06 2004 @@ -25,7 +25,7 @@ */ #include -__FBSDID("$FreeBSD: src/sys/geom/stripe/g_stripe.c,v 1.16 2004/08/11 12:57:17 pjd Exp $"); +__FBSDID("$FreeBSD: src/sys/geom/stripe/g_stripe.c,v 1.19 2004/08/30 18:50:06 pjd Exp $"); #include #include @@ -69,6 +69,7 @@ SYSCTL_DECL(_kern_geom); SYSCTL_NODE(_kern_geom, OID_AUTO, stripe, CTLFLAG_RW, 0, "GEOM_STRIPE stuff"); static u_int g_stripe_debug = 0; +TUNABLE_INT("kern.geom.stripe.debug", &g_stripe_debug); SYSCTL_UINT(_kern_geom_stripe, OID_AUTO, debug, CTLFLAG_RW, &g_stripe_debug, 0, "Debug level"); static int g_stripe_fast = 1; @@ -876,6 +877,9 @@ g_topology_assert(); G_STRIPE_DEBUG(3, "Tasting %s.", pp->name); + /* Skip providers with 0 sectorsize. */ + if (pp->sectorsize == 0) + return (NULL); gp = g_new_geomf(mp, "stripe:taste"); gp->start = g_stripe_start; @@ -1153,7 +1157,8 @@ if (pp != NULL) { /* Nothing here. */ } else if (cp != NULL) { - /* Nothing here. */ + sbuf_printf(sb, "%s%u\n", indent, + (u_int)cp->index); } else { sbuf_printf(sb, "%s%u\n", indent, (u_int)sc->sc_id); sbuf_printf(sb, "%s%u\n", indent,