fix (VFS): changing nodes size on write

This commit is contained in:
antifallobst 2023-03-04 22:27:32 +01:00
parent e5e988ccf7
commit 35b4ee5bbe
1 changed files with 3 additions and 0 deletions

View File

@ -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) { 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) { switch (file->filesystem->type) {
case FS_RAMFS: { case FS_RAMFS: {
ramfs_file_write(file, size, buffer_in); ramfs_file_write(file, size, buffer_in);