Skip to content

Commit

Permalink
Remove unactionable message about label geometry
Browse files Browse the repository at this point in the history
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
  • Loading branch information
emaste committed Mar 8, 2012
1 parent 638b4d3 commit 459dac9
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions sys/geom/part/g_part_bsd.c
Expand Up @@ -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)
Expand All @@ -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;
Expand Down

0 comments on commit 459dac9

Please sign in to comment.