1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:38:11 +00:00

Kernel: Make all ProcFS and SysFS files zero-sized

There is no value in exposing particular sizes for these files.
This commit is contained in:
Andreas Kling 2021-08-28 23:53:29 +02:00
parent b959c1bfa9
commit 8ebf08b6c8
5 changed files with 2 additions and 6 deletions

View file

@ -119,7 +119,7 @@ InodeMetadata SysFSInode::metadata() const
metadata.mode = S_IFREG | S_IRUSR | S_IRGRP | S_IROTH;
metadata.uid = 0;
metadata.gid = 0;
metadata.size = m_associated_component->size();
metadata.size = 0;
metadata.mtime = mepoch;
return metadata;
}