Date: Fri, 26 Dec 2008 20:27:32 +0000 (UTC) From: "David E. O'Brien" <obrien@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r186501 - head/sys/geom/part Message-ID: <200812262027.mBQKRWaE050043@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: obrien Date: Fri Dec 26 20:27:32 2008 New Revision: 186501 URL: http://svn.freebsd.org/changeset/base/186501 Log: When the geometry does not match the label, print out the values. Modified: head/sys/geom/part/g_part_bsd.c Modified: head/sys/geom/part/g_part_bsd.c ============================================================================== --- head/sys/geom/part/g_part_bsd.c Fri Dec 26 19:45:24 2008 (r186500) +++ head/sys/geom/part/g_part_bsd.c Fri Dec 26 20:27:32 2008 (r186501) @@ -337,9 +337,10 @@ g_part_bsd_read(struct g_part_table *bas goto invalid_label; if (heads != basetable->gpt_heads && !basetable->gpt_fixgeom) basetable->gpt_heads = heads; - if (sectors != basetable->gpt_sectors || - heads != basetable->gpt_heads) - printf("GEOM: %s: geometry does not match label.\n", pp->name); + if (sectors != basetable->gpt_sectors || heads != basetable->gpt_heads) + printf("GEOM: %s: geometry does not match label" + " (%uh,%us != %uh,%us).\n", pp->name, heads, sectors, + basetable->gpt_heads, basetable->gpt_sectors); chs = le32dec(buf + 60); if (chs < 1)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812262027.mBQKRWaE050043>