mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
synthfs: generated files should have size=0.
This way we don't need to generate the file just to see how big it would get.
This commit is contained in:
parent
b40c851fce
commit
57136ad87e
Notes:
sideshowbarker
2024-07-19 18:39:44 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/57136ad87e5
1 changed files with 1 additions and 4 deletions
|
@ -105,10 +105,7 @@ InodeMetadata SyntheticFileSystem::inodeMetadata(InodeIdentifier inode) const
|
|||
if (inode.index() == 0 || inode.index() > m_files.size())
|
||||
return InodeMetadata();
|
||||
auto& file = *m_files[inode.index() - 1];
|
||||
auto metadata = file.metadata;
|
||||
if (file.generator)
|
||||
metadata.size = file.generator().size();
|
||||
return metadata;
|
||||
return file.metadata;
|
||||
}
|
||||
|
||||
bool SyntheticFileSystem::setModificationTime(InodeIdentifier, dword timestamp)
|
||||
|
|
Loading…
Reference in a new issue