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
This commit is contained in:
Ed Maste 2012-03-08 01:48:44 +00:00
parent 876acefaaf
commit 972f6945b8

View File

@ -389,10 +389,6 @@ g_part_bsd_read(struct g_part_table *basetable, struct g_consumer *cp)
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 *basetable, struct g_consumer *cp)
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;