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)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to