Author: emaste
Date: Thu Mar 8 01:48:44 2012
New Revision: 232680
URL: http://svn.freebsd.org/changeset/base/232680
Log:
Remove unactionable message about label geometry
It's not clear to a user what they should do after seeing the "geometry
does not match label" kernel message, and it does not appear to present
a problem in practice. Thus, just remove the messages.
Approved by: marcel
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 Thu Mar 8 01:47:12 2012
(r232679)
+++ head/sys/geom/part/g_part_bsd.c Thu Mar 8 01:48:44 2012
(r232680)
@@ -389,10 +389,6 @@ 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"
- " (%uh,%us != %uh,%us).\n", pp->name, heads, sectors,
- basetable->gpt_heads, basetable->gpt_sectors);
chs = le32dec(buf + 60);
if (chs < 1)
@@ -402,9 +398,6 @@ g_part_bsd_read(struct g_part_table *bas
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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"