Size position
< Process identifier of the filesystem
virtual FileSystem::Result read(const u64 offset, void *buffer, const Size size) const
Read a contiguous set of data.
static FileDescriptor * instance()
Retrieve the instance.
FileSystem::Result statFile(const char *path, FileSystem::FileStat *st) const
Retrieve status of a file.
bool open
< Current position indicator.
FileStorage(const char *path, Size offset=ZERO)
Constructor function.
virtual FileSystem::Result initialize()
Initialize the Storage device.
Size m_fd
File descriptor of the file.
Entry * getEntry(const Size index)
Retrieve a file descriptor Entry.
FileSystem::Result writeFile(const Size descriptor, const void *buf, Size *size) const
Write a file.
unsigned long long u64
Unsigned 64-bit number.
Size size
< File access permission bits.
Describes a single file opened by a user process.
FileSystem::Result openFile(const char *path, Size &descriptor) const
Open a file.
unsigned int Size
Any sane size indicator cannot go negative.
virtual u64 capacity() const
Retrieve maximum storage capacity.
FileSystem::FileStat m_stat
Status of the file for Storage I/O.
FileSystem::Result readFile(const Size descriptor, void *buf, Size *size) const
Read a file.
const char * m_path
Path to the file.
virtual FileSystem::Result write(const u64 offset, void *buffer, const Size size)
Write a contiguous set of data.
FileSystemClient m_file
Client for file system I/O.
Result
Result code for filesystem Actions.
Size m_offset
Offset used as a base for I/O.