Added LoadDiskSystem() version, that takes a disk system name.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4018 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2003-07-19 20:26:48 +00:00
parent 58f77562c6
commit 24fa6c601b
2 changed files with 14 additions and 0 deletions

View File

@ -91,6 +91,7 @@ public:
int32 CountDiskSystems();
KDiskSystem *NextDiskSystem(int32 *cookie);
KDiskSystem *LoadDiskSystem(const char *name);
KDiskSystem *LoadDiskSystem(disk_system_id id);
KDiskSystem *LoadNextDiskSystem(int32 *cookie);

View File

@ -664,6 +664,19 @@ KDiskDeviceManager::NextDiskSystem(int32 *cookie)
return NULL;
}
// LoadDiskSystem
KDiskSystem *
KDiskDeviceManager::LoadDiskSystem(const char *name)
{
KDiskSystem *diskSystem = NULL;
if (ManagerLocker locker = this) {
diskSystem = FindDiskSystem(name);
if (diskSystem && diskSystem->Load() != B_OK)
diskSystem = NULL;
}
return diskSystem;
}
// LoadDiskSystem
KDiskSystem *
KDiskDeviceManager::LoadDiskSystem(disk_system_id id)