- Added Tail()
- Turned on some debug output git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5634 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
003d4e83df
commit
35947f6f39
@ -205,8 +205,8 @@ uint32
|
|||||||
Allocator::BlocksFor(uint32 bytes)
|
Allocator::BlocksFor(uint32 bytes)
|
||||||
{
|
{
|
||||||
if (BlockSize() == 0) {
|
if (BlockSize() == 0) {
|
||||||
// DEBUG_INIT_ETC("Allocator", ("bytes: %ld\n", bytes));
|
DEBUG_INIT_ETC("Allocator", ("bytes: %ld\n", bytes));
|
||||||
// PRINT(("WARNING: Allocator::BlockSize() == 0!\n"));
|
PRINT(("WARNING: Allocator::BlockSize() == 0!\n"));
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
uint32 blocks = bytes / BlockSize();
|
uint32 blocks = bytes / BlockSize();
|
||||||
|
@ -35,6 +35,7 @@ public:
|
|||||||
Udf::extent_address &extent);
|
Udf::extent_address &extent);
|
||||||
|
|
||||||
uint32 Length() const { return fLength; }
|
uint32 Length() const { return fLength; }
|
||||||
|
uint32 Tail() const { return fLength; } //!< Returns the first unallocated block in the tail
|
||||||
uint32 BlockSize() const { return fBlockSize; }
|
uint32 BlockSize() const { return fBlockSize; }
|
||||||
uint32 BlockShift() const { return fBlockShift; }
|
uint32 BlockShift() const { return fBlockShift; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user