mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 10:54:57 +00:00
Kernel+LibC: Implement fsync
This commit is contained in:
parent
fd3735199b
commit
a81b21c1a7
13 changed files with 51 additions and 6 deletions
|
@ -107,6 +107,12 @@ KResult InodeFile::truncate(u64 size)
|
|||
return KSuccess;
|
||||
}
|
||||
|
||||
KResult InodeFile::sync()
|
||||
{
|
||||
m_inode->sync();
|
||||
return KSuccess;
|
||||
}
|
||||
|
||||
KResult InodeFile::chown(OpenFileDescription& description, UserID uid, GroupID gid)
|
||||
{
|
||||
VERIFY(description.inode() == m_inode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue