All Packages  Class Hierarchy

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Index of all Fields and Methods

A

allocateBlock(). Method in class FileSystem
Allocate a data block from the list of free blocks.
allocateIndexNode(). Method in class FileSystem
Allocate an index node for the file system.

B

BitBlock(short). Constructor for class BitBlock
Construct a bit block of the specified size in bytes.
Block(). Constructor for class Block
Construct a block.
Block(short). Constructor for class Block
Construct a block with a given block size.
BUF_SIZE. Static variable in class cat
The size of the buffer to be used for reading from the file.
BUF_SIZE. Static variable in class cp
The size of the buffer to be used when reading files.
BUF_SIZE. Static variable in class tee
The size of the buffer to be used for reading from the file.
bytes. Variable in class Block
The array of bytes for this block.

C

cat(). Constructor for class cat
close(). Method in class FileSystem
Close the backing file for this FileSystem, if any.
close(int). Static method in class Kernel
Closes the specified file descriptor.
copy(IndexNode). Method in class IndexNode
copyIndexNode(IndexNode). Method in class Stat
cp(). Constructor for class cp
creat(String, short). Static method in class Kernel
Creates a file or directory with the specified mode.

D

d_ino. Variable in class DirectoryEntry
i-node number for this DirectoryEntry
d_name. Variable in class DirectoryEntry
file name for this DirectoryEntry
DIRECTORY_ENTRY_SIZE. Static variable in class DirectoryEntry
Size of a directory entry (on disk) in bytes.
DirectoryEntry(). Constructor for class DirectoryEntry
Constructs an empty DirectoryEntry.
DirectoryEntry(short, String). Constructor for class DirectoryEntry
Constructs a DirectoryEntry for the given inode and name.
dump(). Constructor for class dump

E

EACCES. Static variable in class Kernel
Permission denied.
EBADF. Static variable in class Kernel
Bad file number.
EEXIST. Static variable in class Kernel
File exists.
EFBIG. Static variable in class Kernel
File too large.
EINVAL. Static variable in class Kernel
Invalid argument.
EISDIR. Static variable in class Kernel
Is a directory.
EMFILE. Static variable in class Kernel
Too many open files.
EMLINK. Static variable in class Kernel
Too many links.
ENFILE. Static variable in class Kernel
File table overflow.
ENOENT. Static variable in class Kernel
No such file or directory.
ENOSPC. Static variable in class Kernel
No space left on device.
ENOTDIR. Static variable in class Kernel
Not a directory.
EPERM. Static variable in class Kernel
Not owner.
EROFS. Static variable in class Kernel
Read-only file system.
errno. Variable in class ProcessContext
Number of last error.
EXDEV. Static variable in class Kernel
Cross-device link.
exit(int). Static method in class Kernel
Terminate the current "process".

F

FileSystem(String, String). Constructor for class FileSystem
Construct a FileSystem and open a FileSystem file.
finalize(int). Static method in class Kernel
End the simulation and exit.
freeBlock(int). Method in class FileSystem
Mark a data block as being free in the free list.
fstat(int, Stat). Static method in class Kernel
Obtain information for an open file.

G

getAtime(). Method in class IndexNode
getAtime(). Method in class Stat
getBlockAddress(int). Method in class IndexNode
Gets the address corresponding to the specified sequential block of the file.
getBlocks(). Method in class SuperBlock
getBlockSize(). Method in class Block
Get the block size in bytes for this Block.
getBlockSize(). Method in class FileDescriptor
getBlockSize(). Method in class FileSystem
Get the blockSize for this FileSystem.
getBlockSize(). Method in class SuperBlock
getBytes(). Method in class FileDescriptor
getCtime(). Method in class IndexNode
getCtime(). Method in class Stat
getDataBlockOffset(). Method in class FileSystem
getDataBlockOffset(). Method in class SuperBlock
Get the dataBlockOffset (in blocks)
getDev(). Method in class Stat
getDeviceNumber(). Method in class FileDescriptor
getDir(). Method in class ProcessContext
Get the process working directory.
getErrno(). Static method in class Kernel
Get the value of errno for the current process.
getFlags(). Method in class FileDescriptor
getFreeListBlockOffset(). Method in class FileSystem
getFreeListBlockOffset(). Method in class SuperBlock
Get the free list block offset
getGid(). Method in class IndexNode
getGid(). Method in class ProcessContext
Get the process gid.
getGid(). Method in class Stat
getIndexNode(). Method in class FileDescriptor
getIndexNodeNumber(). Method in class FileDescriptor
getIno(). Method in class DirectoryEntry
Gets the inode number for this DirectoryEntry
getIno(). Method in class Stat
getInodeBlockOffset(). Method in class FileSystem
getInodeBlockOffset(). Method in class SuperBlock
Get the inode block offset (in blocks)
getMode(). Method in class FileDescriptor
getMode(). Method in class IndexNode
Gets the mode for this IndexNode.
getMode(). Method in class Stat
getMtime(). Method in class IndexNode
getMtime(). Method in class Stat
getName(). Method in class DirectoryEntry
Gets the name for this DirectoryEntry
getNlink(). Method in class IndexNode
Get the number of links for this IndexNode.
getNlink(). Method in class Stat
getOffset(). Method in class FileDescriptor
getRdev(). Method in class Stat
getRootIndexNode(). Method in class FileSystem
Get the rootIndexNode for this FileSystem.
getSize(). Method in class FileDescriptor
getSize(). Method in class IndexNode
Gets the size for this IndexNode.
getSize(). Method in class Stat
getUid(). Method in class IndexNode
getUid(). Method in class ProcessContext
Get the process uid.
getUid(). Method in class Stat
getUmask(). Method in class ProcessContext
Get the process umask.

I

INDEX_NODE_SIZE. Static variable in class IndexNode
Size of each index node in bytes.
IndexNode(). Constructor for class IndexNode
Creates an index node.
initialize(). Static method in class Kernel
Initialize the file simulator kernel.
isBitSet(int). Method in class BitBlock
Checks to see if the specified bit of the block is set (1) or reset (0).

K

Kernel(). Constructor for class Kernel

L

ls(). Constructor for class ls
lseek(int, int, int). Static method in class Kernel
Set the current file pointer for a file.

M

main(String[]). Static method in class cat
Reads files and writes to standard output.
main(String[]). Static method in class cp
Copies an input file to an output file.
main(String[]). Static method in class DirectoryEntry
A test driver for this class.
main(String[]). Static method in class dump
main(String[]). Static method in class IndexNode
A test driver for IndexNode.
main(String[]). Static method in class ls
Lists information about named files or directories.
main(String[]). Static method in class mkdir
Creates the directories given as command line arguments.
main(String[]). Static method in class mkfs
Creates a "file system" in the named file with the specified blocksize and number of blocks.
main(String[]). Static method in class tee
Copies standard input to standard output and to a file.
MAX_DIRECT_BLOCKS. Static variable in class IndexNode
Maximum number of direct blocks in an index node.
MAX_FILE_BLOCKS. Static variable in class IndexNode
Maximum number of blocks in a file.
MAX_FILENAME_LENGTH. Static variable in class DirectoryEntry
Maximum length of a file name.
MAX_OPEN_FILE_SYSTEMS. Static variable in class Kernel
MAX_OPEN_FILES. Static variable in class ProcessContext
The maximum number of files a process may have open.
mkdir(). Constructor for class mkdir
mkfs(). Constructor for class mkfs

N

NOT_A_BLOCK. Static variable in class FileSystem

O

O_RDONLY. Static variable in class Kernel
Open with read-only access.
O_RDWR. Static variable in class Kernel
Open for read or write access.
O_WRONLY. Static variable in class Kernel
Open with write-only access.
open(). Method in class FileSystem
Open a backing file for this FileSystem and read the superblock.
open(String, int). Static method in class Kernel
Opens a file or directory for reading, writing, or both reading and writing.
openFiles. Variable in class ProcessContext
The array of file descriptors for open files.
openFileSystems. Static variable in class Kernel
OUTPUT_MODE. Static variable in class cp
The file mode to use when creating the output file.
OUTPUT_MODE. Static variable in class tee
The file mode to use when creating the output file.

P

perror(String). Static method in class Kernel
Prints a system error message.
ProcessContext(). Constructor for class ProcessContext
Construct a process context.
ProcessContext(short, short, String, short). Constructor for class ProcessContext
Construct a process context and specify uid, gid, dir, and umask.
PROGRAM_NAME. Static variable in class cat
The name of this program.
PROGRAM_NAME. Static variable in class cp
The name of this program.
PROGRAM_NAME. Static variable in class Kernel
The name this program uses when displaying any error messages it generates internally.
PROGRAM_NAME. Static variable in class ls
The name of this program.
PROGRAM_NAME. Static variable in class mkdir
The name of this program.
PROGRAM_NAME. Static variable in class tee
The name of this program.

R

read(byte[], int). Method in class DirectoryEntry
Reads a DirectoryEntry from the spcified byte array at the specified offset.
read(byte[], int). Method in class FileSystem
Read bytes into a buffer from the specified absolute block number of the file system.
read(byte[], int). Method in class IndexNode
Reads the contents of an index node from a byte array.
read(int, byte[], int). Static method in class Kernel
Read bytes from a file.
read(RandomAccessFile). Method in class Block
Read a block from a file at the current position.
read(RandomAccessFile). Method in class SuperBlock
reads this SuperBlock at the current position of the specified file.
readBlock(short). Method in class FileDescriptor
readdir(int, DirectoryEntry). Static method in class Kernel
Reads a directory entry from a file descriptor for an open directory.
readIndexNode(IndexNode, short). Method in class FileSystem
Reads an index node at the index node location specified.
resetBit(int). Method in class BitBlock
Sets the specified bit of the block to 0 (false).
ROOT_FILE_SYSTEM. Static variable in class Kernel
ROOT_INDEX_NODE_NUMBER. Static variable in class FileSystem

S

S_IEXEC. Static variable in class Kernel
User has execute permission
S_IFBLK. Static variable in class Kernel
Block Special
S_IFCHR. Static variable in class Kernel
Character special
S_IFDIR. Static variable in class Kernel
Directory
S_IFMPB. Static variable in class Kernel
Multiplexed block special
S_IFMPC. Static variable in class Kernel
Multiplexed character special
S_IFMT. Static variable in class Kernel
File type mask
S_IFREG. Static variable in class Kernel
Regular file
S_IREAD. Static variable in class Kernel
User has read permission
S_IRGRP. Static variable in class Kernel
Group has read permission
S_IROTH. Static variable in class Kernel
Others have read permission
S_IRUSR. Static variable in class Kernel
User has read permission
S_IRWXG. Static variable in class Kernel
Group has read, write and execute permission
S_IRWXO. Static variable in class Kernel
Others have read, write and execute permission
S_IRWXU. Static variable in class Kernel
User (file owner) has read, write and execute permission
S_ISGID. Static variable in class Kernel
Set group id on execution
S_ISUID. Static variable in class Kernel
Set user id on execution
S_ISVTX. Static variable in class Kernel
Save swapped text even after use
S_IWGRP. Static variable in class Kernel
Group has write permission
S_IWOTH. Static variable in class Kernel
Others have write permisson
S_IWRITE. Static variable in class Kernel
User has write permission
S_IWUSR. Static variable in class Kernel
User has write permission
S_IXGRP. Static variable in class Kernel
Group has execute permission
S_IXOTH. Static variable in class Kernel
Others have execute permission
S_IXUSR. Static variable in class Kernel
User has execute permission
setAtime(int). Method in class IndexNode
setAtime(int). Method in class Stat
setBit(int). Method in class BitBlock
Set a specified bit to 1 (true).
setBit(int, boolean). Method in class BitBlock
Set a specifed bit to a specified boolean value.
setBlockAddress(int, int). Method in class IndexNode
Sets the address corresponding to the specified sequential block of the file.
setBlocks(int). Method in class SuperBlock
setBlockSize(short). Method in class Block
Set the block size in bytes for this Block.
setBlockSize(short). Method in class SuperBlock
setCtime(int). Method in class IndexNode
setCtime(int). Method in class Stat
setDataBlockOffset(int). Method in class SuperBlock
Set the dataBlockOffset (in blocks)
setDev(short). Method in class Stat
setDeviceNumber(short). Method in class FileDescriptor
setDir(String). Method in class ProcessContext
Set the process working directory.
setErrno(int). Static method in class Kernel
Set the value of errno for the current process.
setFreeListBlockOffset(int). Method in class SuperBlock
Set the freeListBlockOffset (in blocks)
setGid(short). Method in class IndexNode
setGid(short). Method in class ProcessContext
Set the process gid.
setGid(short). Method in class Stat
setIndexNodeNumber(short). Method in class FileDescriptor
setIno(short). Method in class DirectoryEntry
Sets the inode number for this DirectoryEntry
setIno(short). Method in class Stat
setInodeBlockOffset(int). Method in class SuperBlock
Set the inodeBlockOffset (in blocks)
setMode(short). Method in class IndexNode
Sets the mode for this IndexNode.
setMode(short). Method in class Stat
setMtime(int). Method in class IndexNode
setMtime(int). Method in class Stat
setName(String). Method in class DirectoryEntry
Sets the name for this DirectoryEntry
setNlink(short). Method in class IndexNode
Set the number of links for this IndedNode.
setNlink(short). Method in class Stat
setOffset(int). Method in class FileDescriptor
setRdev(short). Method in class Stat
setSize(int). Method in class FileDescriptor
setSize(int). Method in class IndexNode
Sets the size for this IndexNode.
setSize(int). Method in class Stat
setUid(short). Method in class IndexNode
setUid(short). Method in class ProcessContext
Set the process uid.
setUid(short). Method in class Stat
setUmask(short). Method in class ProcessContext
Set the process umask.
st_atime. Variable in class Stat
st_ctime. Variable in class Stat
st_dev. Variable in class Stat
st_gid. Variable in class Stat
st_ino. Variable in class Stat
st_mode. Variable in class Stat
st_mtime. Variable in class Stat
st_nlink. Variable in class Stat
st_rdev. Variable in class Stat
st_size. Variable in class Stat
st_uid. Variable in class Stat
Stat(). Constructor for class Stat
stat(String, Stat). Static method in class Kernel
Obtain information about a named file.
SuperBlock(). Constructor for class SuperBlock
Construct a SuperBlock.
sync(). Static method in class Kernel
First commits inodes to buffers, and then buffers to disk.
sys_errlist. Static variable in class Kernel
The array of kernel error messages.
sys_nerr. Static variable in class Kernel
Number of errors messages defined in sys_errlist

Simulates unix system variable:

   int sys_nerr;
 

T

tee(). Constructor for class tee
toString(). Method in class DirectoryEntry
Converts a DirectoryEntry to a printable string.
toString(). Method in class IndexNode
Converts an index node into a printable string.

W

write(byte[], int). Method in class DirectoryEntry
Writes a DirectoryEntry to the specified byte array at the specified offset.
write(byte[], int). Method in class FileSystem
Write bytes from a buffer to the specified absolute block number of the file system.
write(byte[], int). Method in class IndexNode
Writes the contents of an index node to a byte array.
write(int, byte[], int). Static method in class Kernel
Write bytes to a file.
write(RandomAccessFile). Method in class Block
Write a block to a file at the current position.
write(RandomAccessFile). Method in class SuperBlock
writes this SuperBlock at the current position of the specified file.
writeBlock(short). Method in class FileDescriptor
writedir(int, DirectoryEntry). Static method in class Kernel
Writes a directory entry from a file descriptor for an open directory.
writeIndexNode(IndexNode, short). Method in class FileSystem
Writes an index node at the index node location specified.