From owner-svn-src-all@FreeBSD.ORG Fri Dec 26 20:27:33 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 603FD106564A; Fri, 26 Dec 2008 20:27:33 +0000 (UTC) (envelope-from obrien@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 507D28FC08; Fri, 26 Dec 2008 20:27:33 +0000 (UTC) (envelope-from obrien@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id mBQKRWEl050044; Fri, 26 Dec 2008 20:27:32 GMT (envelope-from obrien@svn.freebsd.org) Received: (from obrien@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBQKRWaE050043; Fri, 26 Dec 2008 20:27:32 GMT (envelope-from obrien@svn.freebsd.org) Message-Id: <200812262027.mBQKRWaE050043@svn.freebsd.org> From: "David E. O'Brien" Date: Fri, 26 Dec 2008 20:27:32 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r186501 - head/sys/geom/part X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Dec 2008 20:27:33 -0000 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)