1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:48:11 +00:00

Kernel: Use the system boot time as default timestamp in /sys and /dev

This commit is contained in:
Andreas Kling 2022-06-14 14:02:04 +02:00
parent adaaea4c9a
commit 4e4a930b13
4 changed files with 6 additions and 8 deletions

View file

@ -138,7 +138,7 @@ InodeMetadata SysFSInode::metadata() const
metadata.uid = 0;
metadata.gid = 0;
metadata.size = m_associated_component->size();
metadata.mtime = mepoch;
metadata.mtime = TimeManagement::boot_time();
return metadata;
}
@ -208,7 +208,7 @@ InodeMetadata SysFSDirectoryInode::metadata() const
metadata.uid = 0;
metadata.gid = 0;
metadata.size = 0;
metadata.mtime = mepoch;
metadata.mtime = TimeManagement::boot_time();
return metadata;
}
ErrorOr<void> SysFSDirectoryInode::traverse_as_directory(Function<ErrorOr<void>(FileSystem::DirectoryEntryView const&)> callback) const