Adapted according to the semantics change for the identify()/scan()/free_identify_cookie() disk system hooks.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12189 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2005-03-31 11:29:58 +00:00
parent 0a0a999076
commit 79757df990

View File

@ -100,6 +100,7 @@ KScanPartitionJob::_ScanPartition(KPartition *partition)
} else {
// disk system doesn't identify the partition or worse than our
// current favorite
if (priority >= 0)
diskSystem->FreeIdentifyCookie(partition, cookie);
diskSystem->Unload();
}
@ -109,6 +110,7 @@ KScanPartitionJob::_ScanPartition(KPartition *partition)
if (bestDiskSystem) {
DBG(OUT(" scanning with: %s\n", bestDiskSystem->Name()));
error = bestDiskSystem->Scan(partition, bestCookie);
bestDiskSystem->FreeIdentifyCookie(partition, bestCookie);
if (error == B_OK) {
partition->SetDiskSystem(bestDiskSystem);
for (int32 i = 0; KPartition *child = partition->ChildAt(i); i++)