Renamed KDiskDeviceManager::DiskSystemWith{ID,Name}() to FindDiskSystem().

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3903 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2003-07-08 23:24:47 +00:00
parent 995d5c53be
commit 7dd03a026b
2 changed files with 6 additions and 6 deletions

View File

@ -506,9 +506,9 @@ KDiskDeviceManager::JobQueueAt(int32 index)
return NULL;
}
// DiskSystemWithName
// FindDiskSystem
KDiskSystem *
KDiskDeviceManager::DiskSystemWithName(const char *name)
KDiskDeviceManager::FindDiskSystem(const char *name)
{
for (int32 cookie = 0;
KDiskSystem *diskSystem = NextDiskSystem(&cookie); ) {
@ -518,9 +518,9 @@ KDiskDeviceManager::DiskSystemWithName(const char *name)
return NULL;
}
// DiskSystemWithID
// FindDiskSystem
KDiskSystem *
KDiskDeviceManager::DiskSystemWithID(disk_system_id id)
KDiskDeviceManager::FindDiskSystem(disk_system_id id)
{
DiskSystemMap::Iterator it = fDiskSystems->Find(id);
if (it != fDiskSystems->End())
@ -556,7 +556,7 @@ KDiskDeviceManager::LoadDiskSystem(disk_system_id id)
{
KDiskSystem *diskSystem = NULL;
if (ManagerLocker locker = this) {
diskSystem = DiskSystemWithID(id);
diskSystem = FindDiskSystem(id);
if (diskSystem && diskSystem->Load() != B_OK)
diskSystem = NULL;
}

View File

@ -184,7 +184,7 @@ find_disk_system(const char *name)
{
KDiskDeviceManager *manager = KDiskDeviceManager::Default();
if (ManagerLocker locker = manager) {
if (KDiskSystem *diskSystem = manager->DiskSystemWithName(name))
if (KDiskSystem *diskSystem = manager->FindDiskSystem(name))
return diskSystem->ID();
}
return -1;