summaryrefslogtreecommitdiffstats
path: root/sys/geom/part
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2008-11-18 05:55:58 +0000
committermarcel <marcel@FreeBSD.org>2008-11-18 05:55:58 +0000
commit86005b831182ee450f09768af15a255ba08f0ff5 (patch)
treeaafe2f4ce732c0c53ee8a367d168014b9f4eb5f2 /sys/geom/part
parentb08d457fbe340c0bd96abe214a4c943518c81bbe (diff)
downloadFreeBSD-src-86005b831182ee450f09768af15a255ba08f0ff5.zip
FreeBSD-src-86005b831182ee450f09768af15a255ba08f0ff5.tar.gz
Partition type FS_UNUSED does not mean the partition entry
is unused. Unused partition entries have a partition size of zero. Therefore, partitions can have type FS_UNUSED. MFC after: 3 days
Diffstat (limited to 'sys/geom/part')
-rw-r--r--sys/geom/part/g_part_bsd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/geom/part/g_part_bsd.c b/sys/geom/part/g_part_bsd.c
index e87c5a3..11491aa 100644
--- a/sys/geom/part/g_part_bsd.c
+++ b/sys/geom/part/g_part_bsd.c
@@ -372,8 +372,6 @@ g_part_bsd_read(struct g_part_table *basetable, struct g_consumer *cp)
part.p_cpg = le16dec(p + 14);
if (part.p_size == 0)
continue;
- if (part.p_fstype == FS_UNUSED && index != RAW_PART)
- continue;
if (part.p_offset < table->offset)
continue;
baseentry = g_part_new_entry(basetable, index + 1,
@@ -381,7 +379,7 @@ g_part_bsd_read(struct g_part_table *basetable, struct g_consumer *cp)
part.p_offset - table->offset + part.p_size - 1);
entry = (struct g_part_bsd_entry *)baseentry;
entry->part = part;
- if (part.p_fstype == FS_UNUSED)
+ if (index == RAW_PART)
baseentry->gpe_internal = 1;
}
OpenPOWER on IntegriCloud