Components/IFS/src/include/IFS/HYFS/FileSystem.h
Go to the documentation of this file.
34 * An 'undelete' could be added which would remove this to restore the FW file. It probably wouldn't
83 int fenumxattr(FileHandle file, AttributeEnumCallback callback, void* buffer, size_t bufsize) override;
95 int fgetextents(FileHandle file, Storage::Partition* part, Extent* list, uint16_t extcount) override;
int fcontrol(FileHandle file, ControlCode code, void *buffer, size_t bufSize) override
Low-level and non-standard file control operations.
int write(FileHandle file, const void *data, size_t size) override
write content to a file at current position and advance cursor
int opendir(const char *path, DirHandle &dir) override
open a directory for reading
int flush(FileHandle file) override
flush any buffered data to physical media
~FileSystem()
Definition: Components/IFS/src/include/IFS/HYFS/FileSystem.h:62
String getErrorString(int err) override
get the text for a returned error code
int eof(FileHandle file) override
determine if current file position is at end of file
int setxattr(const char *path, AttributeTag tag, const void *data, size_t size) override
Set an extended attribute for a file given its path.
FileHandle open(const char *path, OpenFlags flags) override
open a file (or directory) by path
Definition: DirectoryTemplate.h:36
ControlCode
See IFS::IFileSystem::fcontrol
Definition: Components/IFS/src/include/IFS/Control.h:48
int fsetxattr(FileHandle file, AttributeTag tag, const void *data, size_t size) override
Set an extended attribute on an open file.
int mount() override
Mount file system, performing any required initialisation.
int read(FileHandle file, void *data, size_t size) override
read content from a file and advance cursor
file_offset_t lseek(FileHandle file, file_offset_t offset, SeekOrigin origin) override
change file read/write position
Definition: Components/IFS/src/include/IFS/HYFS/FileSystem.h:55
int rename(const char *oldpath, const char *newpath) override
rename a file
int setVolume(uint8_t index, IFileSystem *fileSystem) override
Set volume for mountpoint.
int ftruncate(FileHandle file, file_size_t new_size) override
Truncate (reduce) the size of an open file.
int fenumxattr(FileHandle file, AttributeEnumCallback callback, void *buffer, size_t bufsize) override
Enumerate attributes.
int getxattr(const char *path, AttributeTag tag, void *buffer, size_t size) override
Get an attribute from a file given its path.
int rewinddir(DirHandle dir) override
Reset directory read position to start.
int fgetxattr(FileHandle file, AttributeTag tag, void *buffer, size_t size) override
Get an extended attribute from an open file.
int fgetextents(FileHandle file, Storage::Partition *part, Extent *list, uint16_t extcount) override
Get extents for a file.
Definition: Delegate.h:20
FileSystem(IFileSystem *fwfs, IFileSystem *ffs)
Definition: Components/IFS/src/include/IFS/HYFS/FileSystem.h:58