From 3d556594df30c8ec402d3e9dfd7ea9105e5e9d77 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Tue, 6 Jan 2009 06:47:53 +0000 Subject: [PATCH] Don't enforce an upper-bound to the number of sectors or heads that that the provider has. The limits we imposed were PC BIOS specific and not always applicable. --- sys/geom/part/g_part.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/geom/part/g_part.c b/sys/geom/part/g_part.c index ad8495694140..0ad3c617bc5f 100644 --- a/sys/geom/part/g_part.c +++ b/sys/geom/part/g_part.c @@ -182,10 +182,8 @@ g_part_geometry(struct g_part_table *table, struct g_consumer *cp, u_int heads, sectors; int idx; - if (g_getattr("GEOM::fwsectors", cp, §ors) != 0 || - sectors < 1 || sectors > 63 || - g_getattr("GEOM::fwheads", cp, &heads) != 0 || - heads < 1 || heads > 255) { + if (g_getattr("GEOM::fwsectors", cp, §ors) != 0 || sectors == 0 || + g_getattr("GEOM::fwheads", cp, &heads) != 0 || heads == 0) { table->gpt_fixgeom = 0; table->gpt_heads = 0; table->gpt_sectors = 0;