Implement dummy metadata() for epoll and socket files

This commit is contained in:
Shaowei Song
2024-10-30 03:42:01 +00:00
committed by Tate, Hongliang Tian
parent 3461bd5de6
commit 96a153dfc5
8 changed files with 78 additions and 9 deletions

View File

@ -262,6 +262,8 @@ impl FileLike for EventFile {
}
fn metadata(&self) -> Metadata {
// This is a dummy implementation.
// TODO: Add "anonymous inode fs" and link `EventFile` to it.
let now = RealTimeClock::get().read_time();
Metadata {
dev: 0,