svn commit: r216132 - head/sys/geom/part

Ivan Voras ivoras at FreeBSD.org
Thu Dec 2 19:47:28 UTC 2010


Author: ivoras
Date: Thu Dec  2 19:47:27 2010
New Revision: 216132
URL: http://svn.freebsd.org/changeset/base/216132

Log:
  Add a note about the magic number 20. Actually, 22.75 entries fit in
  a 512 byte sector but when choosing magic numbers, 20 looks nicer.
  
  Discussed with:	marcel

Modified:
  head/sys/geom/part/g_part_bsd.c

Modified: head/sys/geom/part/g_part_bsd.c
==============================================================================
--- head/sys/geom/part/g_part_bsd.c	Thu Dec  2 18:37:34 2010	(r216131)
+++ head/sys/geom/part/g_part_bsd.c	Thu Dec  2 19:47:27 2010	(r216132)
@@ -99,7 +99,7 @@ static struct g_part_scheme g_part_bsd_s
 	sizeof(struct g_part_bsd_table),
 	.gps_entrysz = sizeof(struct g_part_bsd_entry),
 	.gps_minent = 8,
-	.gps_maxent = 20,
+	.gps_maxent = 20,	/* Only 22 entries fit in 512 byte sectors */
 	.gps_bootcodesz = BBSIZE,
 };
 G_PART_SCHEME_DECLARE(g_part_bsd);


More information about the svn-src-head mailing list