svn commit: r216269 - head/sys/geom/part
Bruce Cran
brucec at FreeBSD.org
Tue Dec 7 20:46:12 UTC 2010
Author: brucec
Date: Tue Dec 7 20:46:11 2010
New Revision: 216269
URL: http://svn.freebsd.org/changeset/base/216269
Log:
Don't warn if a partition appears not to be aligned on a track boundary.
Modern disks use LBA and create a fake CHS geometry that doesn't have any
relation to the on-disk layout of data.
Modified:
head/sys/geom/part/g_part_mbr.c
Modified: head/sys/geom/part/g_part_mbr.c
==============================================================================
--- head/sys/geom/part/g_part_mbr.c Tue Dec 7 20:31:04 2010 (r216268)
+++ head/sys/geom/part/g_part_mbr.c Tue Dec 7 20:46:11 2010 (r216269)
@@ -449,12 +449,6 @@ g_part_mbr_read(struct g_part_table *bas
basetable->gpt_heads = heads;
}
}
- if ((ent.dp_start % basetable->gpt_sectors) != 0)
- printf("GEOM: %s: partition %d does not start on a "
- "track boundary.\n", pp->name, index + 1);
- if ((ent.dp_size % basetable->gpt_sectors) != 0)
- printf("GEOM: %s: partition %d does not end on a "
- "track boundary.\n", pp->name, index + 1);
entry = (struct g_part_mbr_entry *)g_part_new_entry(basetable,
index + 1, ent.dp_start, ent.dp_start + ent.dp_size - 1);
More information about the svn-src-head
mailing list