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
This commit is contained in:
Andrey V. Elsukov 2012-08-07 09:22:46 +00:00
parent b7e39c683a
commit 06f2b92916
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239127

View File

@ -466,7 +466,7 @@ ptable_bsdread(struct ptable *table, void *dev, diskread_t dread)
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)