Skip to content

Commit

Permalink
gpt: for now, always add partitions at the end.
Browse files Browse the repository at this point in the history
  • Loading branch information
axeld committed Jan 26, 2013
1 parent ee5f683 commit 959e02a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/add-ons/disk_systems/gpt/GPTPartitionHandle.cpp
Expand Up @@ -174,8 +174,8 @@ GPTPartitionHandle::CreateChild(off_t offset, off_t size,
// create the child
BMutablePartition* partition = Partition();
BMutablePartition* child;
status_t status = partition->CreateChild(0, typeString, name,
parameters, &child);
status_t status = partition->CreateChild(partition->CountChildren(),
typeString, name, parameters, &child);
if (status != B_OK)
return status;

Expand Down

0 comments on commit 959e02a

Please sign in to comment.