mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 20:05:54 +00:00
vfs_trace: report correct size for value files
File size must be the same as the number of bytes that can be read from the file. Otherwise, this will trigger a `Truncated_during_read` exception. Fixes genodelabs/genode#4240
This commit is contained in:
parent
e648e7255a
commit
0840cfe834
@ -196,7 +196,7 @@ class Vfs::Value_file_system : public Vfs::Single_file_system
|
||||
Stat_result stat(char const *path, Stat &out) override
|
||||
{
|
||||
Stat_result result = Single_file_system::stat(path, out);
|
||||
out.size = BUF_SIZE + 1;
|
||||
out.size = _buffer.length();
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user