svn commit: r239325 - head/sys/boot/common
Andrey V. Elsukov
ae at FreeBSD.org
Thu Aug 16 06:45:59 UTC 2012
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
More information about the svn-src-head
mailing list