#include #include #include #include "fs/ext2/ext2_driver.h" #include "victoriafalls_server.h" uint64_t main(uint64_t init_cap) { ParseInitPort(init_cap); dbgln("VFs Started"); YellowstoneClient yellowstone(gInitEndpointCap); Empty empty; DenaliInfo denali_info; RET_ERR(yellowstone.GetDenali(empty, denali_info)); ASSIGN_OR_RETURN(Ext2Driver ext2, Ext2Driver::Init(denali_info)); ASSIGN_OR_RETURN(auto server, VFSServer::Create(ext2)); Thread server_thread = server->RunServer(); RegisterEndpointRequest req; req.set_endpoint_name("victoriafalls"); ASSIGN_OR_RETURN(auto client, server->CreateClient()); req.set_endpoint_capability(client.Capability()); check(yellowstone.RegisterEndpoint(req, empty)); RET_ERR(server_thread.Join()); return 0; }