* 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++;
|
||||
partition->SetParent(this);
|
||||
partition->SetDevice(Device());
|
||||
|
||||
// publish to devfs
|
||||
error = PublishDevice();
|
||||
if (error != B_OK)
|
||||
return error;
|
||||
partition->PublishDevice();
|
||||
|
||||
// notify listeners
|
||||
FireChildAdded(partition, index);
|
||||
return B_OK;
|
||||
|
||||
Reference in New Issue
Block a user