mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
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
This commit is contained in:
parent
02f0ff6d92
commit
1a696559de
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185048
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user