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
This commit is contained in:
Ingo Weinhold
2003-09-29 21:43:59 +00:00
parent 541c05cc85
commit 77fe5e61a5
@@ -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;
}