MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / Write

Method Write

Kernel/src/fs/fat32.cpp:154–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152 }
153
154 ssize_t Fat32Volume::Write(Fat32Node* node, size_t offset, size_t size, uint8_t *buffer){
155 return -EROFS;
156
157 List<uint32_t>* clusters = GetClusterChain(node->inode);
158 if(offset + size > clusters->get_length() * bootRecord->bpb.sectorsPerCluster * part->parentDisk->blocksize){
159 // TODO: Allocate clusters
160 Log::Info("[FAT32] Allocating Clusters");
161
162 }
163 }
164
165 void Fat32Volume::Open(Fat32Node* node, uint32_t flags){
166

Callers

nothing calls this directly

Calls 2

InfoFunction · 0.85
get_lengthMethod · 0.45

Tested by

no test coverage detected