svn commit: r186501 - head/sys/geom/part

David E. O'Brien obrien at FreeBSD.org
Fri Dec 26 20:27:33 UTC 2008


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)


More information about the svn-src-all mailing list