Components/IFS/src/include/IFS/FWFS/FileSystem.h
Go to the documentation of this file.
65 uint32_t dataSize{0};
66 uint32_t cursor{0};
300 int findChildObject(const FWObjDesc& parent, FWObjDesc& child, const char* name, unsigned namelen);
int settime(FileHandle file, time_t mtime) override
Set modificatino tiem for file.
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:135
FWObjDesc odFile
File object.
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:64
int flush(FileHandle file) override
flush any buffered data to physical media
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:158
Definition: ObjectStore.h:108
bool isMounted()
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:77
int write(FileHandle file, const void *data, size_t size) override
write content to a file at current position and advance cursor
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:147
~FileSystem()
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:98
int setattr(const char *path, FileAttributes attr)
Set file attributes.
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:131
FWFileDescAttr
file descriptor attributes
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:54
virtual int readChildHeader(const FWObjDesc &parent, FWObjDesc &child)=0
fetch child object header
#define FWFS_MAX_VOLUMES
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:44
int ftruncate(FileHandle file, size_t new_size) override
Truncate (reduce) the size of an open file.
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:154
Definition: DirectoryTemplate.h:36
Implementation of firmware filing system using IFS.
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:86
FWFS Volume definition - identifies object store and volume object after mounting.
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:73
virtual int openChild(const FWObjDesc &parent, const FWObjDesc &child, FWObjDesc &od)=0
open a descriptor for a child object
FWFS File Descriptor.
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:63
int fremove(FileHandle file) override
remove (delete) a file by handle
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:170
Descriptor in use.
ObjRef ref
Volume reference.
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:75
int mkdir(const char *path) override
Create a directory.
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:120
int check() override
Perform a file system consistency check.
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:178
FileSystem(IObjectStore *store)
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:93
Definition: Access.h:34
int setacl(FileHandle file, const ACL &acl) override
Set access control information for file.
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:127
FWFileDescAttributes attr
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:67
uint8_t refCount
For testing open/close correctness.
Definition: ObjectStore.h:38
int rename(const char *oldpath, const char *newpath) override
rename a file
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:162
FileSystem()
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:89
int setcompression(FileHandle file, const Compression &compression)
Set file compression information.
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:139
virtual int open(FWObjDesc &od)=0
find an object and return a descriptor for it
virtual int readContent(const FWObjDesc &od, uint32_t offset, uint32_t size, void *buffer)=0
read object content
int format() override
format the filing system
Definition: Components/IFS/src/include/IFS/FWFS/FileSystem.h:174
1.8.13