mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40: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:
@@ -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()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user