kernel: Start counting partition numbers at 1
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This makes more sense for the end user.
This commit is contained in:
parent
8ace83f2ae
commit
266fa4a0d4
@ -41,7 +41,7 @@ namespace GPT
|
|||||||
|
|
||||||
u64 partition_table_start = header.partition_table_lba * GPT_SECTOR_SIZE;
|
u64 partition_table_start = header.partition_table_lba * GPT_SECTOR_SIZE;
|
||||||
|
|
||||||
u32 partition_index = 0;
|
u32 partition_index = 1;
|
||||||
|
|
||||||
auto* table = TRY(make_array<PartitionEntry>(header.num_partitions));
|
auto* table = TRY(make_array<PartitionEntry>(header.num_partitions));
|
||||||
auto guard = make_scope_guard([table] { delete[] table; });
|
auto guard = make_scope_guard([table] { delete[] table; });
|
||||||
|
@ -59,7 +59,7 @@ namespace MBR
|
|||||||
|
|
||||||
if (hdr.signature[0] != MBR_SIGNATURE_1 || hdr.signature[1] != MBR_SIGNATURE_2) return false;
|
if (hdr.signature[0] != MBR_SIGNATURE_1 || hdr.signature[1] != MBR_SIGNATURE_2) return false;
|
||||||
|
|
||||||
u32 partition_index = 0;
|
u32 partition_index = 1;
|
||||||
|
|
||||||
for (int i = 0; i < 4; i++)
|
for (int i = 0; i < 4; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user