Added ContentSize(). Added default parameters for CanMove() and CanResize().

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4134 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2003-07-30 00:35:05 +00:00
parent 8954437d0a
commit fc45522e03
2 changed files with 30 additions and 17 deletions
+5 -3
View File
@@ -26,6 +26,7 @@ public:
off_t Offset() const; // 0 for devices
off_t Size() const;
off_t ContentSize() const; // 0 if uninitialized
uint32 BlockSize() const;
int32 Index() const; // 0 for devices
uint32 Status() const;
@@ -76,12 +77,13 @@ public:
bool CanRepair(bool checkOnly, bool *whileMounted = NULL) const;
status_t Repair(bool checkOnly) const;
bool CanResize(bool *canResizeContents, bool *whileMounted = NULL) const;
bool CanResize(bool *canResizeContents = NULL,
bool *whileMounted = NULL) const;
status_t ValidateResize(off_t *size, bool resizeContents = true) const;
status_t Resize(off_t size, bool resizeContents = true);
bool CanMove(BObjectList<BPartition> *unmovableDescendants,
BObjectList<BPartition> *movableOnlyIfUnmounted) const;
bool CanMove(BObjectList<BPartition> *unmovableDescendants = NULL,
BObjectList<BPartition> *movableOnlyIfUnmounted = NULL) const;
status_t ValidateMove(off_t *newOffset, bool force = false) const;
status_t Move(off_t newOffset, bool force = false);