mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40:49 +00:00
Implement utime() along with a naive /bin/touch.
This synchronous approach to inodes is silly, obviously. I need to rework it so that the in-memory CoreInode object is the canonical inode, and then we just need a sync() that flushes pending changes to disk.
This commit is contained in:
@@ -146,11 +146,12 @@ InodeMetadata SynthFS::inode_metadata(InodeIdentifier inode) const
|
||||
return (*it).value->m_metadata;
|
||||
}
|
||||
|
||||
bool SynthFS::set_mtime(InodeIdentifier, dword timestamp)
|
||||
int SynthFS::set_atime_and_mtime(InodeIdentifier, dword atime, dword mtime)
|
||||
{
|
||||
(void) timestamp;
|
||||
(void) atime;
|
||||
(void) mtime;
|
||||
kprintf("FIXME: Implement SyntheticFileSystem::setModificationTime().\n");
|
||||
return false;
|
||||
return -ENOTIMPL;
|
||||
}
|
||||
|
||||
InodeIdentifier SynthFS::create_inode(InodeIdentifier parentInode, const String& name, Unix::mode_t mode, unsigned size, int& error)
|
||||
|
||||
Reference in New Issue
Block a user