|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrossi.fstools.fs.reiserfs.ReiserFileSystem
Representation of the reiser file system. Application code is to use this class.
| Constructor Summary | |
ReiserFileSystem()
|
|
| Method Summary | |
void |
close()
Close the underlying BlockReader used by this file system. |
Device |
createReiserDevice(StatDataItem sdItem)
Create a Device from a StatDataItem. |
Directory |
createReiserDirectory(StatDataItem sdItem)
Create a Directory given the StatDataItem describing it. |
File |
createReiserFile(StatDataItem sdItem)
Creates a file for the given StatDataItem. |
SymLink |
createReiserSymLink(StatDataItem sdItem)
Create a Symlink from a StatDataItem. |
LeafNode |
findLeaf(Key key)
This is temporarily public just for testing. |
LeafNode |
findLeftMostLeaf(FBlock parent,
int startblock)
Gets the leftmost leaf of the given block if startblock points to an internal node. |
Item |
findNextItem(Key key)
Finds the item whose key is equal to key if key exists in the tree. |
Inode |
getInode(InodePtr ptr)
Gets an inode given a pointer. |
protected FBlock |
getNode(int blkno)
Gets a tree node. |
FsObject |
getObject(Inode inode)
Get the file system object that is pointed to by the given Inode. |
InodePtr |
getRootDir()
Returns pointer to root directory. |
LeafNode |
nextLeaf(LeafNode current)
Returns the next leaf following the given leaf. |
SuperBlock |
open(BlockReader br)
Open a file system for reading. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ReiserFileSystem()
| Method Detail |
public SuperBlock open(BlockReader br)
throws FsException,
java.io.IOException
FileSystem
open in interface FileSystembr - a BlockReader for accessing the physical filesystem.
java.io.IOException
FsException - if the superblock cannot be parsed.
public void close()
throws java.io.IOException
FileSystem
close in interface FileSystemjava.io.IOExceptionpublic InodePtr getRootDir()
getRootDir in interface FileSystem
protected FBlock getNode(int blkno)
throws java.io.IOException,
FsException
java.io.IOException
FsException
public Inode getInode(InodePtr ptr)
throws java.io.IOException,
FsException
getInode in interface FileSystemptr - an InodePtr
FsException - if the Inode cannot be parsed.
java.io.IOException - if an IO error occurs
public LeafNode findLeaf(Key key)
throws FsException,
java.io.IOException
key - the Key to look for.
FsException
java.io.IOException
public LeafNode findLeftMostLeaf(FBlock parent,
int startblock)
throws FsException,
java.io.IOException
parent - a FBlock which is the parent of startblockstartblock - a int pointing to the starting node/leaf block.
FsException - if a parsing error occurs.
java.io.IOException - if an IO error occurs
public LeafNode nextLeaf(LeafNode current)
throws FsException,
java.io.IOException
current - The current leaf
FsException - if the next leaf cant be found.
java.io.IOException - if an IO error occurs.
public Item findNextItem(Key key)
throws FsException,
java.io.IOException
key -
FsException - if a parse error occurs
java.io.IOException - if an IO error occurs
public SymLink createReiserSymLink(StatDataItem sdItem)
throws FsException,
java.io.IOException
sdItem - a StatDataItem
FsException
java.io.IOException
public File createReiserFile(StatDataItem sdItem)
throws FsException,
java.io.IOException
sdItem - a StatDataItem
FsException
java.io.IOException
public Directory createReiserDirectory(StatDataItem sdItem)
throws FsException,
java.io.IOException
sdItem - a StatDataItem
FsException
java.io.IOException
public Device createReiserDevice(StatDataItem sdItem)
throws FsException,
java.io.IOException
sdItem - a StatDataItem
FsException
java.io.IOException
public FsObject getObject(Inode inode)
throws FsException,
java.io.IOException
getObject in interface FileSysteminode - a Inode
FsException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||