Several fixes necessary to get the partition scanning working.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3506 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2003-06-13 22:08:10 +00:00
parent 07d370e32a
commit 2609ebac90
8 changed files with 88 additions and 16 deletions
@@ -90,6 +90,9 @@ private:
status_t _AddFileSystem(const char *name);
status_t _AddDiskSystem(KDiskSystem *diskSystem);
bool _AddDevice(KDiskDevice *device);
bool _RemoveDevice(KDiskDevice *device);
status_t _Scan(const char *path);
status_t _ScanPartition(KPartition *partition);
@@ -111,11 +111,15 @@ protected:
status_t SetPrettyName(const char *name);
static int32 _NextID();
private:
disk_system_id fID;
char *fName;
char *fPrettyName;
int32 fLoadCounter;
static int32 fNextID;
};
} // namespace DiskDevice
@@ -78,9 +78,8 @@ partition_data *get_child_partition(partition_id partitionID, int32 index);
// partition write access
// (write lock required)
partition_data *create_child_partition(partition_id partitionID, int32 index,
partition_id *childID);
// childID is used for the return value, but is also an optional input
// parameter -- -1 to be ignored
partition_id childID);
// childID is an optional input parameter -- -1 to be ignored
bool delete_partition(partition_id partitionID);
void partition_modified(partition_id partitionID);
// tells the disk device manager, that the parition has been modified