Go to the documentation of this file.
18 #ifndef __FILESYSTEM_FILESTORAGE_H
19 #define __FILESYSTEM_FILESTORAGE_H
virtual FileSystem::Result read(const u64 offset, void *buffer, const Size size) const
Read a contiguous set of data.
FileSystemClient provides a simple interface to a FileSystemServer.
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.
unsigned long long u64
Unsigned 64-bit number.
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.
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.
Use a file as Storage provider.
Contains file information.
Result
Result code for filesystem Actions.
Size m_offset
Offset used as a base for I/O.
Provides a storage device to build filesystems on top.