Date: Thu, 26 Mar 2015 11:19:25 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r280686 - head/sys/geom Message-ID: <201503261119.t2QBJPnH009430@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Thu Mar 26 11:19:24 2015 New Revision: 280686 URL: https://svnweb.freebsd.org/changeset/base/280686 Log: Report withered providers as such alike to GEOMs. MFC after: 2 weeks Modified: head/sys/geom/geom_dump.c Modified: head/sys/geom/geom_dump.c ============================================================================== --- head/sys/geom/geom_dump.c Thu Mar 26 11:02:29 2015 (r280685) +++ head/sys/geom/geom_dump.c Thu Mar 26 11:19:24 2015 (r280686) @@ -216,7 +216,9 @@ g_conf_provider(struct sbuf *sb, struct sbuf_printf(sb, "\t <sectorsize>%u</sectorsize>\n", pp->sectorsize); sbuf_printf(sb, "\t <stripesize>%u</stripesize>\n", pp->stripesize); sbuf_printf(sb, "\t <stripeoffset>%u</stripeoffset>\n", pp->stripeoffset); - if (pp->geom->flags & G_GEOM_WITHER) + if (pp->flags & G_PF_WITHER) + sbuf_printf(sb, "\t <wither/>\n"); + else if (pp->geom->flags & G_GEOM_WITHER) ; else if (pp->geom->dumpconf != NULL) { sbuf_printf(sb, "\t <config>\n");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503261119.t2QBJPnH009430>