mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 14:28:49 +00:00
Reworked Inode to have a dirty bit and subclass-implemented flush_metadata().
This way we can defer disk writes as long as we like. There's no automatic flushing happening just yet.
This commit is contained in:
parent
d506c857ab
commit
1f44cd9dd9
Notes:
sideshowbarker
2024-07-19 16:08:01 +09:00
Author: https://github.com/awesomekling
Commit: 1f44cd9dd9
11 changed files with 82 additions and 58 deletions
|
@ -146,14 +146,6 @@ InodeMetadata SynthFS::inode_metadata(InodeIdentifier inode) const
|
|||
return (*it).value->m_metadata;
|
||||
}
|
||||
|
||||
int SynthFS::set_atime_and_mtime(InodeIdentifier, dword atime, dword mtime)
|
||||
{
|
||||
(void) atime;
|
||||
(void) mtime;
|
||||
kprintf("FIXME: Implement SyntheticFileSystem::setModificationTime().\n");
|
||||
return -ENOTIMPL;
|
||||
}
|
||||
|
||||
InodeIdentifier SynthFS::create_inode(InodeIdentifier parentInode, const String& name, Unix::mode_t mode, unsigned size, int& error)
|
||||
{
|
||||
(void) parentInode;
|
||||
|
@ -318,3 +310,7 @@ String SynthFSInode::reverse_lookup(InodeIdentifier child_id)
|
|||
}
|
||||
return { };
|
||||
}
|
||||
|
||||
void SynthFSInode::flush_metadata()
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue