gpt: add pointer to the GPT header for child partitions.
* This fixes odd behaviour in devices.cpp for the UEFI loader, which I had forgotten to commit at that time.
This commit is contained in:
@@ -140,6 +140,7 @@ efi_gpt_scan_partition(int fd, partition_data* partition, void* _cookie)
|
|||||||
child->type = strdup(get_partition_type(entry.partition_type));
|
child->type = strdup(get_partition_type(entry.partition_type));
|
||||||
child->block_size = partition->block_size;
|
child->block_size = partition->block_size;
|
||||||
child->cookie = (void*)(addr_t)i;
|
child->cookie = (void*)(addr_t)i;
|
||||||
|
child->content_cookie = header;
|
||||||
}
|
}
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user