Some changes regarding partition creation and initialization.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3615 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
24d57dc067
commit
031858645f
@ -17,18 +17,20 @@ public:
|
||||
bool SupportsResizingChild(BPartition *child) const;
|
||||
bool SupportsMoving(BPartition *partition, bool *whileMounted) const;
|
||||
bool SupportsMovingChild(BPartition *child) const;
|
||||
bool SupportsParentSystem(const char *system) const;
|
||||
bool SupportsCreatingChild(BPartition *partition) const;
|
||||
bool SupportsParentSystem(KPartition *child, const char *system) const;
|
||||
// True in most cases. NULL == raw device.
|
||||
bool SupportsChildSystem(const char *system) const;
|
||||
bool SupportsChildSystem(KPartition *child, 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 char *parameters) const;
|
||||
bool ValidateCreateChild(BPartition *partition, off_t *start, off_t *size,
|
||||
const char *type, const char *parameters) const;
|
||||
// TODO: We must be able to enumerate the types the system supports.
|
||||
|
||||
bool IsPartitioningSystem() const;
|
||||
bool IsFileSystem() const;
|
||||
|
@ -36,10 +36,12 @@ public:
|
||||
|
||||
const char* Name() const;
|
||||
const char* ContentName() const;
|
||||
const char* Type() const; // See DiskDeviceTypes.h
|
||||
const char* Type() const; // See DiskDeviceTypes.h
|
||||
const char* ContentType() const; // See DiskDeviceTypes.h
|
||||
partition_id UniqueID() const;
|
||||
uint32 Flags() const;
|
||||
|
||||
status_t GetDiskSystem(BDiskSystem *diskSystem) const;
|
||||
|
||||
status_t GetPath(BPath *path) const;
|
||||
status_t GetVolume(BVolume *volume) const;
|
||||
@ -91,18 +93,17 @@ public:
|
||||
bool CanInitialize(const char *diskSystem) const;
|
||||
status_t GetInitializationParameterEditor(const char *system,
|
||||
BDiskScannerParameterEditor **editor) const;
|
||||
status_t Initialize(const char *diskSystem,
|
||||
const char *parameters);
|
||||
status_t Initialize(const char *diskSystem, const char *parameters);
|
||||
|
||||
// Modification of child partitions
|
||||
|
||||
bool CanCreateChild() const;
|
||||
status_t GetChildCreationParameterEditor(const char *system,
|
||||
status_t GetChildCreationParameterEditor(const char *system,
|
||||
BDiskScannerParameterEditor **editor) const;
|
||||
status_t ValidateCreateChild(off_t *start, off_t *size,
|
||||
const char *parameters) const;
|
||||
status_t CreateChild(off_t start, off_t size, const char *parameters,
|
||||
BPartition** child = NULL);
|
||||
const char *type, const char *parameters) const;
|
||||
status_t CreateChild(off_t start, off_t size, const char *type,
|
||||
const char *parameters, BPartition** child = NULL);
|
||||
|
||||
bool CanDeleteChild(int32 index) const;
|
||||
status_t DeleteChild(int32 index);
|
||||
|
Loading…
Reference in New Issue
Block a user