mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-13 18:36:38 +02:00
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.
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 16:07:56 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ed7ae6c02c8
@@ -123,6 +123,8 @@ public:
|
||||
|
||||
InodeIdentifier root_inode_id() const;
|
||||
|
||||
void sync();
|
||||
|
||||
private:
|
||||
friend class FileDescriptor;
|
||||
friend class Vnode;
|
||||
|
||||
Reference in New Issue
Block a user