[VictoriaFalls] Register VFS endpoint with yellowstone.
This commit is contained in:
parent
48c7721b0f
commit
38fb6ca170
5 changed files with 30 additions and 8 deletions
|
|
@ -24,6 +24,8 @@ uint64_t main(uint64_t init_cap) {
|
|||
|
||||
ASSIGN_OR_RETURN(auto server, VFSServer::Create());
|
||||
|
||||
Thread server_thread = server->RunServer();
|
||||
|
||||
RegisterEndpointRequest req;
|
||||
req.set_endpoint_name("victoriafalls");
|
||||
ASSIGN_OR_RETURN(auto client, server->CreateClient());
|
||||
|
|
@ -31,5 +33,7 @@ uint64_t main(uint64_t init_cap) {
|
|||
check(yellowstone.RegisterEndpoint(req, empty));
|
||||
check(ext2.ProbeDirectory(root));
|
||||
|
||||
RET_ERR(server_thread.Join());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,5 +10,5 @@ glcr::ErrorOr<glcr::UniquePtr<VFSServer>> VFSServer::Create() {
|
|||
|
||||
glcr::ErrorCode VFSServer::HandleOpenFile(const OpenFileRequest&,
|
||||
OpenFileResponse&) {
|
||||
return glcr::OK;
|
||||
return glcr::UNIMPLEMENTED;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue