* 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:
Ingo Weinhold
2009-07-08 12:50:13 +00:00
parent eff35b90f2
commit 4dceabd707
@@ -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;