gpt: for now, always add partitions at the end.
This commit is contained in:
@@ -174,8 +174,8 @@ GPTPartitionHandle::CreateChild(off_t offset, off_t size,
|
|||||||
// create the child
|
// create the child
|
||||||
BMutablePartition* partition = Partition();
|
BMutablePartition* partition = Partition();
|
||||||
BMutablePartition* child;
|
BMutablePartition* child;
|
||||||
status_t status = partition->CreateChild(0, typeString, name,
|
status_t status = partition->CreateChild(partition->CountChildren(),
|
||||||
parameters, &child);
|
typeString, name, parameters, &child);
|
||||||
if (status != B_OK)
|
if (status != B_OK)
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user