23 #include "modules/system/vfs/File.h" 24 #include "pedigree/kernel/processor/types.h" 25 #include "pedigree/kernel/time/Time.h" 26 #include "pedigree/kernel/utilities/Cache.h" 27 #include "pedigree/kernel/utilities/String.h" 40 String name, Time::Timestamp accessedTime, Time::Timestamp modifiedTime,
41 Time::Timestamp creationTime, uintptr_t inode,
class Filesystem *pFs,
42 size_t size, uint32_t dirClus = 0, uint32_t dirOffset = 0,
47 uint32_t getDirCluster()
51 void setDirCluster(uint32_t custom)
55 uint32_t getDirOffset()
59 void setDirOffset(uint32_t custom)
65 void writeBlock(uint64_t location, uintptr_t addr);
67 virtual void extend(
size_t newSize);
68 virtual void extend(
size_t newSize, uint64_t location, uint64_t size);
71 virtual void sync(
size_t offset,
bool async);
73 virtual void pinBlock(uint64_t location);
80 Cache m_FileBlockCache;
virtual void extend(size_t newSize)
virtual void pinBlock(uint64_t location)
FatFile(const File &file)
uintptr_t readBlock(uint64_t location)
virtual void unpinBlock(uint64_t location)
void writeBlock(uint64_t location, uintptr_t addr)