Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Aug 2012 06:45:58 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239325 - head/sys/boot/common
Message-ID:  <201208160645.q7G6jwbg073123@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Thu Aug 16 06:45:58 2012
New Revision: 239325
URL: http://svn.freebsd.org/changeset/base/239325

Log:
  Add comment why the code has been disabled.
  
  Requested by:	rpaulo

Modified:
  head/sys/boot/common/part.c

Modified: head/sys/boot/common/part.c
==============================================================================
--- head/sys/boot/common/part.c	Thu Aug 16 05:03:59 2012	(r239324)
+++ head/sys/boot/common/part.c	Thu Aug 16 06:45:58 2012	(r239325)
@@ -372,7 +372,7 @@ ptable_ebrread(struct ptable *table, voi
 	if (buf == NULL)
 		return (table);
 	for (i = 0; i < MAXEBRENTRIES; i++) {
-#if 0
+#if 0	/* Some BIOSes return an incorrect number of sectors */
 		if (offset >= table->sectors)
 			break;
 #endif
@@ -665,7 +665,7 @@ ptable_open(void *dev, off_t sectors, ui
 		end = le32toh(dp[i].dp_size);
 		if (start == 0 || end == 0)
 			continue;
-#if 0
+#if 0	/* Some BIOSes return an incorrect number of sectors */
 		if (start + end - 1 >= sectors)
 			continue;	/* XXX: ignore */
 #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208160645.q7G6jwbg073123>