From owner-svn-src-head@FreeBSD.ORG Tue Aug 7 09:22:46 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFB9B106566B; Tue, 7 Aug 2012 09:22:46 +0000 (UTC) (envelope-from ae@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AAECA8FC0A; Tue, 7 Aug 2012 09:22:46 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q779Mk8b044290; Tue, 7 Aug 2012 09:22:46 GMT (envelope-from ae@svn.freebsd.org) Received: (from ae@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q779MkPx044288; Tue, 7 Aug 2012 09:22:46 GMT (envelope-from ae@svn.freebsd.org) Message-Id: <201208070922.q779MkPx044288@svn.freebsd.org> From: "Andrey V. Elsukov" Date: Tue, 7 Aug 2012 09:22:46 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r239127 - head/sys/boot/common X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Aug 2012 09:22:46 -0000 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)