mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +00:00
TmpFS: Set the root inode's timestamp to the current time
cc @bcoles :^)
This commit is contained in:
parent
1172746633
commit
abe9cec612
1 changed files with 4 additions and 0 deletions
|
@ -114,6 +114,10 @@ NonnullRefPtr<TmpFSInode> TmpFSInode::create(TmpFS& fs, InodeMetadata metadata,
|
|||
NonnullRefPtr<TmpFSInode> TmpFSInode::create_root(TmpFS& fs)
|
||||
{
|
||||
InodeMetadata metadata;
|
||||
auto now = kgettimeofday();
|
||||
metadata.atime = now.tv_sec;
|
||||
metadata.ctime = now.tv_sec;
|
||||
metadata.mtime = now.tv_sec;
|
||||
metadata.mode = S_IFDIR | S_ISVTX | 0777;
|
||||
return create(fs, metadata, { fs.fsid(), 1 });
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue