[Midnightbsd-cvs] src [8420] trunk/sys/geom/part/g_part_bsd.c: geometry does not match label error is confusing.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Sep 18 17:08:35 EDT 2016


Revision: 8420
          http://svnweb.midnightbsd.org/src/?rev=8420
Author:   laffer1
Date:     2016-09-18 17:08:35 -0400 (Sun, 18 Sep 2016)
Log Message:
-----------
geometry does not match label error is confusing.

Modified Paths:
--------------
    trunk/sys/geom/part/g_part_bsd.c

Modified: trunk/sys/geom/part/g_part_bsd.c
===================================================================
--- trunk/sys/geom/part/g_part_bsd.c	2016-09-18 21:08:05 UTC (rev 8419)
+++ trunk/sys/geom/part/g_part_bsd.c	2016-09-18 21:08:35 UTC (rev 8420)
@@ -394,10 +394,6 @@
 		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"
-		    " (%uh,%us != %uh,%us).\n", pp->name, heads, sectors,
-		    basetable->gpt_heads, basetable->gpt_sectors);
 
 	chs = le32dec(buf + 60);
 	if (chs < 1)
@@ -407,9 +403,6 @@
 		chs = msize;
 		le32enc(buf + 60, msize);
 	}
-	if (chs != msize)
-		printf("GEOM: %s: media size does not match label.\n",
-		    pp->name);
 
 	basetable->gpt_first = 0;
 	basetable->gpt_last = msize - 1;



More information about the Midnightbsd-cvs mailing list