3 // Copyright (c) 2003, Ingo Weinhold (bonefish@cs.tu-berlin.de)
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // You can alternatively use *this file* under the terms of the the MIT
20 // license included in this package.
25 #include <SupportDefs.h>
42 status_t
Init(Volume
*volume
, Node
*rootNode
, uint32 treeHeight
);
43 status_t
InitCheck() const;
45 Volume
*GetVolume() const { return fVolume
; }
47 uint32
GetTreeHeight() const;
48 uint32
GetBlockSize() const;
50 BlockCache
*GetBlockCache() const;
51 Node
*GetRootNode() const;
53 status_t
GetBlock(uint64 blockNumber
, Block
**block
);
54 status_t
GetNode(uint64 blockNumber
, Node
**node
);
56 status_t
FindDirEntry(uint32 dirID
, uint32 objectID
, const char *name
,
57 DirItem
*foundItem
, int32
*entryIndex
);
58 status_t
FindDirEntry(uint32 dirID
, uint32 objectID
, const char *name
,
59 size_t nameLen
, DirItem
*foundItem
,
62 status_t
FindStatItem(uint32 dirID
, uint32 objectID
, StatItem
*item
);
66 BlockCache
*fBlockCache
;