add sync implementation to various fs servers

Fixes #1007.
This commit is contained in:
Josef Söntgen 2013-12-18 14:36:17 +01:00 committed by Norman Feske
parent 1c67e3bb43
commit e1370b558e
4 changed files with 15 additions and 0 deletions

View File

@ -852,6 +852,9 @@ namespace File_system {
{
PWRN("File_system::Session::sigh not supported");
}
/* ffat only supports fsync(2) */
void sync() { }
};

View File

@ -308,6 +308,13 @@ class File_system::Session_component : public Session_rpc_object
{
_handle_registry.sigh(node_handle, sigh);
}
/**
* We could call sync(2) here but for now we forward just the
* reminder because besides testing, there is currently no
* use-case.
*/
void sync() { PWRN("sync() not implemented!"); }
};

View File

@ -411,6 +411,8 @@ namespace File_system {
{
_handle_registry.sigh(node_handle, sigh);
}
void sync() { }
};

View File

@ -424,6 +424,9 @@ namespace File_system {
{
PWRN("File_system::Session::sigh not supported");
}
/* merely readonly, no need to sync */
void sync() { }
};