mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-30 06:52:52 +00:00
Kernel: Use the system boot time as default timestamp in /sys and /dev
This commit is contained in:
parent
adaaea4c9a
commit
4e4a930b13
Notes:
sideshowbarker
2024-07-17 10:14:05 +09:00
Author: https://github.com/awesomekling
Commit: 4e4a930b13
4 changed files with 6 additions and 8 deletions
|
@ -94,7 +94,7 @@ InodeMetadata DevTmpFSInode::metadata() const
|
|||
metadata.uid = m_uid;
|
||||
metadata.gid = m_gid;
|
||||
metadata.size = 0;
|
||||
metadata.mtime = mepoch;
|
||||
metadata.mtime = TimeManagement::boot_time();
|
||||
switch (node_type()) {
|
||||
case Type::RootDirectory:
|
||||
metadata.inode = { fsid(), 1 };
|
||||
|
@ -102,7 +102,7 @@ InodeMetadata DevTmpFSInode::metadata() const
|
|||
metadata.uid = 0;
|
||||
metadata.gid = 0;
|
||||
metadata.size = 0;
|
||||
metadata.mtime = mepoch;
|
||||
metadata.mtime = TimeManagement::boot_time();
|
||||
break;
|
||||
case Type::Directory:
|
||||
metadata.inode = { fsid(), index() };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue