Kernel: Cleanup inode stat updating

Inode now handles stat upates itself and calls sync function to make
updates visible on the underlying filesystem
This commit is contained in:
2026-05-19 13:00:05 +03:00
parent a05fcdde8c
commit 1dc26d3c06
17 changed files with 240 additions and 259 deletions

View File

@@ -155,22 +155,6 @@ namespace Kernel
DevFileSystem::get().add_inode("tty", MUST(DevTTY::create(0666, 0, 0)));
}
BAN::ErrorOr<void> TTY::chmod_impl(mode_t mode)
{
// FIXME: make this atomic
ASSERT((mode & Inode::Mode::TYPE_MASK) == 0);
m_mode &= Inode::Mode::TYPE_MASK;
m_mode |= mode;
return {};
}
BAN::ErrorOr<void> TTY::chown_impl(uid_t uid, gid_t gid)
{
m_uid = uid;
m_gid = gid;
return {};
}
void TTY::update_winsize(unsigned short cols, unsigned short rows)
{
// FIXME: make this atomic