From 77fe5e61a547af6758884f577b9c164ea3258fd4 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 29 Sep 2003 21:43:59 +0000 Subject: [PATCH] Another fix of the code that updates which partitions are still busy. Hopefully the last one. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4868 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/disk_device_manager/KDiskDeviceManager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/kernel/core/disk_device_manager/KDiskDeviceManager.cpp b/src/kernel/core/disk_device_manager/KDiskDeviceManager.cpp index f40d548dd8..db785265b2 100644 --- a/src/kernel/core/disk_device_manager/KDiskDeviceManager.cpp +++ b/src/kernel/core/disk_device_manager/KDiskDeviceManager.cpp @@ -996,7 +996,7 @@ KDiskDeviceManager::_UpdateBusyPartitions(KDiskDevice *device) { // parent busy => child busy if (partition->Parent() && partition->Parent()->IsBusy()) - partition->Parent()->AddFlags(B_PARTITION_BUSY); + partition->AddFlags(B_PARTITION_BUSY); return false; } @@ -1005,8 +1005,7 @@ KDiskDeviceManager::_UpdateBusyPartitions(KDiskDevice *device) // child [descendant] busy => parent descendant busy if ((partition->IsBusy() || partition->IsDescendantBusy()) && partition->Parent()) { - partition->Parent()->AddFlags( - B_PARTITION_DESCENDANT_BUSY); + partition->Parent()->AddFlags(B_PARTITION_DESCENDANT_BUSY); } return false; }