Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Oct 2014 06:58:04 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273208 - head/sys/geom
Message-ID:  <201410170658.s9H6w4ft058304@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Fri Oct 17 06:58:04 2014
New Revision: 273208
URL: https://svnweb.freebsd.org/changeset/base/273208

Log:
  Add provider's sectorsize and stripesize to confdot output.
  
  Submitted by:	rpokala at panasas.com

Modified:
  head/sys/geom/geom_dump.c

Modified: head/sys/geom/geom_dump.c
==============================================================================
--- head/sys/geom/geom_dump.c	Fri Oct 17 06:23:04 2014	(r273207)
+++ head/sys/geom/geom_dump.c	Fri Oct 17 06:58:04 2014	(r273208)
@@ -61,8 +61,9 @@ static void
 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\\n"
+	    "sector=%u\\nstripe=%u\"];\n", pp, pp->name, pp->acr, pp->acw,
+	    pp->ace, pp->error, pp->sectorsize, pp->stripesize);
 }
 
 static void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410170658.s9H6w4ft058304>