SimpleFS
A Simple File Sytem implementation including Disk and Shell Layers
|
Go to the documentation of this file.
35 const static size_t BLOCK_SIZE = 4096;
55 void open(
const char *path,
size_t nblocks);
86 void read(
int blocknum,
char *data);
93 void write(
int blocknum,
char *data);
void unmount()
unmount the disk
bool mounted() const
check if the disk has been mounted
Disk()
constructor of Disk class
void mount()
mount the disk
void sanity_check(int blocknum, char *data)
check if the block is within valid range
void read(int blocknum, char *data)
read from disk
void open(const char *path, size_t nblocks)
opens the disk image
size_t size() const
check size of disk
Disk class Implements Disk abstraction that enables emulation of a disk image. Used by file system to...
~Disk()
destructor of Disk class
void write(int blocknum, char *data)
write to disk