diff --git a/headers/private/storage/Partition.h b/headers/private/storage/Partition.h index c68f2be85f..7e4d599870 100644 --- a/headers/private/storage/Partition.h +++ b/headers/private/storage/Partition.h @@ -79,13 +79,13 @@ public: 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); + status_t ValidateResize(off_t *size) const; + status_t Resize(off_t size); bool CanMove(BObjectList *unmovableDescendants = NULL, BObjectList *movableOnlyIfUnmounted = NULL) const; - status_t ValidateMove(off_t *newOffset, bool force = false) const; - status_t Move(off_t newOffset, bool force = false); + status_t ValidateMove(off_t *newOffset) const; + status_t Move(off_t newOffset); bool CanSetName() const; status_t ValidateSetName(char *name) const; diff --git a/src/kits/storage/Partition.cpp b/src/kits/storage/Partition.cpp index 0c9bd67480..3e1fdb38d7 100644 --- a/src/kits/storage/Partition.cpp +++ b/src/kits/storage/Partition.cpp @@ -518,22 +518,22 @@ BPartition::CanResize(bool *canResizeContents, bool *whileMounted) const // ValidateResize status_t -BPartition::ValidateResize(off_t *size, bool resizeContents) const +BPartition::ValidateResize(off_t *size) const { if (!fPartitionData || IsDevice() || !Parent() || !_IsShadow() || !size) return B_BAD_VALUE; - return _kern_validate_resize_partition(_ShadowID(), _ChangeCounter(), size, - resizeContents); + return _kern_validate_resize_partition(_ShadowID(), _ChangeCounter(), + size); } // Resize status_t -BPartition::Resize(off_t size, bool resizeContents) +BPartition::Resize(off_t size) { if (!fPartitionData || IsDevice() || !Parent() || !_IsShadow()) return B_BAD_VALUE; status_t error = _kern_resize_partition(_ShadowID(), _ChangeCounter(), - size, resizeContents); + size); if (error == B_OK) error = Device()->Update(); return error; @@ -597,24 +597,24 @@ BPartition::CanMove(BObjectList *unmovableDescendants, // ValidateMove status_t -BPartition::ValidateMove(off_t *newOffset, bool force) const +BPartition::ValidateMove(off_t *newOffset) const { if (!fPartitionData || IsDevice() || !Parent() || !_IsShadow() || !newOffset) { return B_BAD_VALUE; } return _kern_validate_move_partition(_ShadowID(), _ChangeCounter(), - newOffset, force); + newOffset); } // Move status_t -BPartition::Move(off_t newOffset, bool force) +BPartition::Move(off_t newOffset) { if (!fPartitionData || IsDevice() || !Parent() || !_IsShadow()) return B_BAD_VALUE; status_t error = _kern_resize_partition(_ShadowID(), _ChangeCounter(), - newOffset, force); + newOffset); if (error == B_OK) error = Device()->Update(); return error;