void sync(char const *path)

Sync now takes a path argument at VFS and File system interfaces.

Issue #1648
This commit is contained in:
Emery Hemingway
2015-10-07 17:02:52 +02:00
committed by Christian Helmuth
parent 96d021b9d4
commit 2da239d0c8
15 changed files with 29 additions and 29 deletions

View File

@ -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 (...) { }
}