fix (VFS): changing nodes size on write
This commit is contained in:
parent
e5e988ccf7
commit
35b4ee5bbe
|
@ -229,6 +229,9 @@ void vfs_file_delete(vfs_node_T* file) {
|
|||
}
|
||||
|
||||
void vfs_file_write(vfs_node_T* file, uint64_t position, uint64_t size, uint8_t* buffer_in) {
|
||||
// in future this probably isn't a good way to determine the size of a file:
|
||||
file->size = size;
|
||||
|
||||
switch (file->filesystem->type) {
|
||||
case FS_RAMFS: {
|
||||
ramfs_file_write(file, size, buffer_in);
|
||||
|
|
Loading…
Reference in New Issue