When avoiding to rescan a partition, we still have to recurse so that
its unidentified children can be scanned, if necessary. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22197 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c4650bba52
commit
c22ee2bf75
|
@ -76,6 +76,8 @@ KScanPartitionJob::_ScanPartition(KPartition *partition)
|
||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
if (partition->DiskSystem() != NULL) {
|
if (partition->DiskSystem() != NULL) {
|
||||||
// TODO: this is more or less a hack to prevent rescanning a partition
|
// TODO: this is more or less a hack to prevent rescanning a partition
|
||||||
|
for (int32 i = 0; KPartition *child = partition->ChildAt(i); i++)
|
||||||
|
_ScanPartition(child);
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue