svn commit: r231640 - stable/9/sys/geom/part

Andrey V. Elsukov ae at FreeBSD.org
Tue Feb 14 07:12:46 UTC 2012


Author: ae
Date: Tue Feb 14 07:12:46 2012
New Revision: 231640
URL: http://svn.freebsd.org/changeset/base/231640

Log:
  MFC r231349:
    Let's be more realistic and limit maximum number of partition to 4k.

Modified:
  stable/9/sys/geom/part/g_part_apm.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/geom/part/g_part_apm.c
==============================================================================
--- stable/9/sys/geom/part/g_part_apm.c	Tue Feb 14 06:42:43 2012	(r231639)
+++ stable/9/sys/geom/part/g_part_apm.c	Tue Feb 14 07:12:46 2012	(r231640)
@@ -102,7 +102,7 @@ static struct g_part_scheme g_part_apm_s
 	sizeof(struct g_part_apm_table),
 	.gps_entrysz = sizeof(struct g_part_apm_entry),
 	.gps_minent = 16,
-	.gps_maxent = INT_MAX,
+	.gps_maxent = 4096,
 };
 G_PART_SCHEME_DECLARE(g_part_apm);
 


More information about the svn-src-stable-9 mailing list