libblock: Discard extended partitions

Discard the extended partitions after evaluation.  This prevents logical
disks that contain other logical disks.
This commit is contained in:
Sebastian Huber
2012-02-28 15:34:42 +01:00
parent c93fc2b36b
commit a3170f70b6

View File

@@ -389,6 +389,8 @@ read_mbr(int fd, rtems_disk_desc_t *disk_desc)
if (part_desc != NULL && is_extended(part_desc->sys_type))
{
read_extended_partition(fd, part_desc->start, part_desc);
free(part_desc);
disk_desc->partitions[part_num] = NULL;
}
}