From 4dceabd7074518143a82e950d2027afd82b30a98 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Wed, 8 Jul 2009 12:50:13 +0000 Subject: [PATCH] * 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 --- src/system/kernel/disk_device_manager/KPartition.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/kernel/disk_device_manager/KPartition.cpp b/src/system/kernel/disk_device_manager/KPartition.cpp index 7a93243bf5..46ce8ae873 100644 --- a/src/system/kernel/disk_device_manager/KPartition.cpp +++ b/src/system/kernel/disk_device_manager/KPartition.cpp @@ -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;