DiskDevice API v2.3.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3376 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Tyler Dauwalder
2003-05-28 21:47:29 +00:00
parent 17dc6e0c84
commit 9f4ec30369
6 changed files with 62 additions and 37 deletions
+7 -5
View File
@@ -10,27 +10,29 @@ class BDiskSystem {
public:
const char *Name() const;
bool SupportsDefragmenting(BPartition *partition) const;
bool SupportsRepairing(BPartition *partition, bool checkOnly) const;
bool SupportsResizing(BPartition *partition) const;
bool SupportsDefragmenting(BPartition *partition, bool *whileMounted) const;
bool SupportsRepairing(BPartition *partition, bool checkOnly, bool *whileMounted) const;
bool SupportsResizing(BPartition *partition, bool *whileMounted) const;
bool SupportsResizingChild(BPartition *child) const;
bool SupportsMoving(BPartition *partition) const;
bool SupportsMoving(BPartition *partition, bool *whileMounted) const;
bool SupportsMovingChild(BPartition *child) const;
bool SupportsParentSystem(const char *system) const;
// True in most cases. NULL == raw device.
bool SupportsChildSystem(const char *system) const;
// False for most file systems, true for most partitioning
// systems.
bool ValidateResize(BPartition *partition, off_t *size) const;
bool ValidateMove(BPartition *partition, off_t *start) const;
bool ValidateResizeChild(BPartition *partition, off_t *size) const;
bool ValidateMoveChild(BPartition *partition, off_t *start) const;
bool ValidateCreateChild(BPartition *partition, off_t *start, off_t *size) const;
bool ValidateCreateChild(BPartition *partition, off_t *start, off_t *size, const char *parameters) const;
bool ValidateInitialize(BPartition *partition) const;
bool IsPartitioningSystem() const;
bool IsFileSystem() const;
bool IsSubSystemFor(BPartition *parent) const;
};
#endif // _DISK_SYSTEM_H