svn commit: r239127 - head/sys/boot/common
Andrey V. Elsukov
ae at FreeBSD.org
Tue Aug 7 09:22:46 UTC 2012
Author: ae
Date: Tue Aug 7 09:22:46 2012
New Revision: 239127
URL: http://svn.freebsd.org/changeset/base/239127
Log:
As it turned out, there are some installations, where BSD label
contains partitions with type zero. And it has worked.
So, allow detect these partitions.
Reported by: glebius
Modified:
head/sys/boot/common/part.c
Modified: head/sys/boot/common/part.c
==============================================================================
--- head/sys/boot/common/part.c Tue Aug 7 08:37:35 2012 (r239126)
+++ head/sys/boot/common/part.c Tue Aug 7 09:22:46 2012 (r239127)
@@ -466,7 +466,7 @@ ptable_bsdread(struct ptable *table, voi
for (i = 0; i < dl->d_npartitions; i++, part++) {
if (i == RAW_PART)
continue;
- if (part->p_size == 0 || part->p_fstype == 0)
+ if (part->p_size == 0)
continue;
entry = malloc(sizeof(*entry));
if (entry == NULL)
More information about the svn-src-all
mailing list