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
@@ -106,9 +106,9 @@ class File_system::Session_client : public Rpc_client<Session>
|
||||
call<Rpc_sigh>(node, sigh);
|
||||
}
|
||||
|
||||
void sync() override
|
||||
void sync(Node_handle node) override
|
||||
{
|
||||
call<Rpc_sync>();
|
||||
call<Rpc_sync>(node);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -289,7 +289,7 @@ struct File_system::Session : public Genode::Session
|
||||
* cache, which needs to be flushed on certain occasions. Therefore,
|
||||
* the default implementation just serves as a reminder.
|
||||
*/
|
||||
virtual void sync() { PWRN("sync() not implemented!"); }
|
||||
virtual void sync(Node_handle) { }
|
||||
|
||||
|
||||
/*******************
|
||||
@@ -328,7 +328,7 @@ struct File_system::Session : public Genode::Session
|
||||
GENODE_RPC_THROW(Rpc_sigh, void, sigh,
|
||||
GENODE_TYPE_LIST(Invalid_handle),
|
||||
Node_handle, Signal_context_capability);
|
||||
GENODE_RPC(Rpc_sync, void, sync);
|
||||
GENODE_RPC(Rpc_sync, void, sync, Node_handle);
|
||||
|
||||
/*
|
||||
* Manual type-list definition, needed because the RPC interface
|
||||
|
||||
Reference in New Issue
Block a user