From 35947f6f3902d3762e1519b9fb6eb8f9bb76df53 Mon Sep 17 00:00:00 2001 From: Tyler Dauwalder Date: Tue, 9 Dec 2003 00:45:36 +0000 Subject: [PATCH] - Added Tail() - Turned on some debug output git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5634 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/bin/makeudfimage/Allocator.cpp | 4 ++-- src/apps/bin/makeudfimage/Allocator.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/apps/bin/makeudfimage/Allocator.cpp b/src/apps/bin/makeudfimage/Allocator.cpp index 9121bba240..26f0defdb6 100644 --- a/src/apps/bin/makeudfimage/Allocator.cpp +++ b/src/apps/bin/makeudfimage/Allocator.cpp @@ -205,8 +205,8 @@ uint32 Allocator::BlocksFor(uint32 bytes) { if (BlockSize() == 0) { -// DEBUG_INIT_ETC("Allocator", ("bytes: %ld\n", bytes)); -// PRINT(("WARNING: Allocator::BlockSize() == 0!\n")); + DEBUG_INIT_ETC("Allocator", ("bytes: %ld\n", bytes)); + PRINT(("WARNING: Allocator::BlockSize() == 0!\n")); return 0; } else { uint32 blocks = bytes / BlockSize(); diff --git a/src/apps/bin/makeudfimage/Allocator.h b/src/apps/bin/makeudfimage/Allocator.h index 2266e35dbf..b1b0e23ae8 100644 --- a/src/apps/bin/makeudfimage/Allocator.h +++ b/src/apps/bin/makeudfimage/Allocator.h @@ -35,6 +35,7 @@ public: Udf::extent_address &extent); uint32 Length() const { return fLength; } + uint32 Tail() const { return fLength; } //!< Returns the first unallocated block in the tail uint32 BlockSize() const { return fBlockSize; } uint32 BlockShift() const { return fBlockShift; }