ladybird/Userland/sync.cpp
Andreas Kling ed7ae6c02c Add sync() syscall and a /bin/sync.
It walks all the live Inode objects and flushes pending metadata changes
wherever needed.

This could be optimized by keeping a separate list of dirty Inodes,
but let's not get ahead of ourselves.
2018-12-20 00:39:29 +01:00

9 lines
92 B
C++

#include <stdio.h>
#include <unistd.h>
int main(int, char**)
{
sync();
return 0;
}