mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +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:
@@ -127,3 +127,8 @@ FS::DirectoryEntry::DirectoryEntry(const char* n, size_t nl, InodeIdentifier i,
|
||||
CoreInode::~CoreInode()
|
||||
{
|
||||
}
|
||||
|
||||
int CoreInode::set_atime_and_mtime(Unix::time_t atime, Unix::time_t mtime)
|
||||
{
|
||||
return fs().set_atime_and_mtime(identifier(), atime, mtime);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user