Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Aug 2012 09:22:46 +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: r239127 - head/sys/boot/common
Message-ID:  <201208070922.q779MkPx044288@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



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