Kernel: All devices have atime, mtime, ctime at their creation

This commit is contained in:
Bananymous
2023-03-30 12:09:37 +03:00
parent 5d5487315f
commit a513bc5749
3 changed files with 8 additions and 5 deletions

View File

@@ -19,14 +19,10 @@ namespace Kernel::Input
virtual uid_t uid() const override { return 0; }
virtual gid_t gid() const override { return 0; }
virtual off_t size() const override { return 0; }
virtual timespec atime() const override { return m_time; }
virtual timespec mtime() const override { return m_time; }
virtual timespec ctime() const override { return m_time; }
virtual blkcnt_t blocks() const override { return 0; }
virtual dev_t dev() const override { return m_dev; }
private:
timespec m_time;
ino_t m_ino;
dev_t m_dev;
};