Skip to content

Commit 916b212

Browse files
AngryProtonRbb666
authored andcommitted
[FIX]Update vnode size after writing to tmpfs
1 parent 6b5331a commit 916b212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/dfs/dfs_v2/filesystems/tmpfs/dfs_tmpfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ static ssize_t dfs_tmpfs_write(struct dfs_file *file, const void *buf, size_t co
358358
rt_mutex_take(&file->vnode->lock, RT_WAITING_FOREVER);
359359

360360
count = _dfs_tmpfs_write(d_file, buf, count, pos);
361-
361+
file->vnode->size = d_file->size;
362362
rt_mutex_release(&file->vnode->lock);
363363

364364
return count;

0 commit comments

Comments
 (0)