* Publish the newly added child partition, not the (already published) parent
partition. * Don't fail, if publishing failed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31460 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -771,10 +771,10 @@ KPartition::AddChild(KPartition *partition, int32 index)
|
|||||||
fPartitionData.child_count++;
|
fPartitionData.child_count++;
|
||||||
partition->SetParent(this);
|
partition->SetParent(this);
|
||||||
partition->SetDevice(Device());
|
partition->SetDevice(Device());
|
||||||
|
|
||||||
// publish to devfs
|
// publish to devfs
|
||||||
error = PublishDevice();
|
partition->PublishDevice();
|
||||||
if (error != B_OK)
|
|
||||||
return error;
|
|
||||||
// notify listeners
|
// notify listeners
|
||||||
FireChildAdded(partition, index);
|
FireChildAdded(partition, index);
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user