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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user