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:
Andreas Kling 2018-12-19 21:56:45 +01:00
parent d506c857ab
commit 1f44cd9dd9
Notes: sideshowbarker 2024-07-19 16:08:01 +09:00
11 changed files with 82 additions and 58 deletions

View file

@ -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()
{
}