From 404cfb5e2085631af0ae1e9076fb6ab2aafc7cc7 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Sat, 27 Sep 2008 15:28:15 +0000 Subject: [PATCH] Allow 255 sectors/track for the BSD disklabel. The previous limit of 63 sectors/track is too PC BIOS specific. On pc98, where the BSD disklabel is used as well, 255 sectors/track is not uncommon. Submitted by: nyan@ --- sys/geom/part/g_part_bsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/geom/part/g_part_bsd.c b/sys/geom/part/g_part_bsd.c index 228c4652ea0f..1854dccd0097 100644 --- a/sys/geom/part/g_part_bsd.c +++ b/sys/geom/part/g_part_bsd.c @@ -322,7 +322,7 @@ g_part_bsd_read(struct g_part_table *basetable, struct g_consumer *cp) if (le32dec(buf + 40) != pp->sectorsize) goto invalid_label; sectors = le32dec(buf + 44); - if (sectors < 1 || sectors > 63) + if (sectors < 1 || sectors > 255) goto invalid_label; if (sectors != basetable->gpt_sectors && !basetable->gpt_fixgeom) { g_part_geometry_heads(msize, sectors, &chs, &heads);