Components/IFS/src/include/IFS/Gdb/FileSystem.h
Go to the documentation of this file.
83 int fenumxattr(FileHandle file, AttributeEnumCallback callback, void* buffer, size_t bufsize) override
105 }
int getxattr(const char *path, AttributeTag tag, void *buffer, size_t size) override
Get an attribute from a file given its path.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:151
file_offset_t lseek(FileHandle file, file_offset_t offset, SeekOrigin origin) override
change file read/write position
int mkdir(const char *path) override
Create a directory.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:129
int eof(FileHandle file) override
determine if current file position is at end of file
int check() override
Perform a file system consistency check.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:180
int read(FileHandle file, void *data, size_t size) override
read content from a file and advance cursor
~FileSystem() override
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:101
int rewinddir(DirHandle dir) override
Reset directory read position to start.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:117
Definition: DirectoryTemplate.h:36
FileHandle open(const char *path, OpenFlags flags) override
open a file (or directory) by path
int mount() override
Mount file system, performing any required initialisation.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:105
int fenumxattr(FileHandle file, AttributeEnumCallback callback, void *buffer, size_t bufsize) override
Enumerate attributes.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:143
int flush(FileHandle file) override
flush any buffered data to physical media
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:166
FileSystem()
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:97
int fremove(FileHandle file) override
remove (delete) a file by handle
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:172
int format() override
format the filing system
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:176
int fgetxattr(FileHandle file, AttributeTag tag, void *buffer, size_t size) override
Get an extended attribute from an open file.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:139
int fsetxattr(FileHandle file, AttributeTag tag, const void *data, size_t size) override
Set an extended attribute on an open file.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:135
int write(FileHandle file, const void *data, size_t size) override
write content to a file at current position and advance cursor
int setxattr(const char *path, AttributeTag tag, const void *data, size_t size) override
Set an extended attribute for a file given its path.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:147
int opendir(const char *path, DirHandle &dir) override
open a directory for reading
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:113
Definition: Delegate.h:20
int rename(const char *oldpath, const char *newpath) override
rename a file
String getErrorString(int err) override
get the text for a returned error code
int closedir(DirHandle dir) override
close a directory object
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:125
int ftruncate(FileHandle file, file_size_t new_size) override
Truncate (reduce) the size of an open file.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:162
int readdir(DirHandle dir, Stat &stat) override
read a directory entry
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:121