SetParent() is now a public function (could be made private again and friend of
add_partitions_for(), though). The partition now also tracks if it refers to a partitioning system or not. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9745 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -28,17 +28,18 @@ class Partition : public Node, public partition_data {
|
|||||||
status_t Mount(Directory **_fileSystem = NULL);
|
status_t Mount(Directory **_fileSystem = NULL);
|
||||||
status_t Scan(bool mountFileSystems);
|
status_t Scan(bool mountFileSystems);
|
||||||
|
|
||||||
|
void SetParent(Partition *parent) { fParent = parent; }
|
||||||
Partition *Parent() const { return fParent; }
|
Partition *Parent() const { return fParent; }
|
||||||
|
|
||||||
bool IsFileSystem() const { return fIsFileSystem; }
|
bool IsFileSystem() const { return fIsFileSystem; }
|
||||||
|
bool IsPartitioningSystem() const { return fIsPartitioningSystem; }
|
||||||
const char *ModuleName() const { return fModuleName; }
|
const char *ModuleName() const { return fModuleName; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void SetParent(Partition *parent) { fParent = parent; }
|
|
||||||
|
|
||||||
int fFD;
|
int fFD;
|
||||||
NodeList fChildren;
|
NodeList fChildren;
|
||||||
Partition *fParent;
|
Partition *fParent;
|
||||||
bool fIsFileSystem;
|
bool fIsFileSystem, fIsPartitioningSystem;
|
||||||
const char *fModuleName;
|
const char *fModuleName;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user