Implemented a preliminary disk device scanning in KDiskDeviceManager.

Some changes to KPartition, KDiskDevice, KDiskSystem on this way.
Still missing is KPartition::Publish() and its invocation in
KDiskDeviceManager. Then everything should be in place to start with
porting the scanning parts of our disk system modules.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3486 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2003-06-12 22:21:10 +00:00
parent f3df767f76
commit ef9b1b52ee
8 changed files with 316 additions and 15 deletions
@@ -23,7 +23,10 @@ public:
KDiskDevice(partition_id id = -1);
virtual ~KDiskDevice();
status_t SetTo(const char *path);
void Unset();
status_t InitCheck() const;
// TODO: probably superfluous
// A read lock owner can be sure that the device (incl. all of its
// partitions won't be changed).
@@ -64,6 +67,8 @@ public:
team_id ShadowOwner() const;
private:
void _InitPartitionData();
disk_device_data fDeviceData;
RWLocker fLocker;
int fFD;