mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-17 06:38:28 +00:00
void sync(char const *path)
Sync now takes a path argument at VFS and File system interfaces. Issue #1648
This commit is contained in:
committed by
Christian Helmuth
parent
96d021b9d4
commit
2da239d0c8
@ -568,9 +568,13 @@ class Vfs::Fs_file_system : public File_system
|
||||
|
||||
static char const *name() { return "fs"; }
|
||||
|
||||
void sync() override
|
||||
void sync(char const *path) override
|
||||
{
|
||||
_fs.sync();
|
||||
try {
|
||||
::File_system::Node_handle node = _fs.node(path);
|
||||
Fs_handle_guard node_guard(_fs, node);
|
||||
_fs.sync(node);
|
||||
} catch (...) { }
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user