[Denali] Move denali server to yunq.
This commit is contained in:
parent
acfaf26391
commit
3e4fdfee84
25 changed files with 526 additions and 163 deletions
|
|
@ -9,6 +9,7 @@ target_include_directories(victoriafalls
|
|||
"${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
|
||||
target_link_libraries(victoriafalls
|
||||
denali_yunq
|
||||
glacier
|
||||
mammoth
|
||||
yellowstone_yunq
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <denali/denali_client.h>
|
||||
#include <denali/scoped_denali_client.h>
|
||||
#include <glacier/memory/shared_ptr.h>
|
||||
#include <glacier/status/error_or.h>
|
||||
#include <mammoth/memory_region.h>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
#pragma once
|
||||
|
||||
#include <denali/denali_client.h>
|
||||
#include <denali/scoped_denali_client.h>
|
||||
#include <glacier/memory/move.h>
|
||||
#include <glacier/memory/unique_ptr.h>
|
||||
|
||||
#include "fs/ext2/ext2.h"
|
||||
#include "fs/ext2/ext2_block_reader.h"
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
#include <denali/scoped_denali_client.h>
|
||||
#include <mammoth/debug.h>
|
||||
#include <mammoth/init.h>
|
||||
#include <yellowstone/yellowstone.yunq.client.h>
|
||||
|
|
@ -14,9 +15,8 @@ uint64_t main(uint64_t init_cap) {
|
|||
DenaliInfo denali_info;
|
||||
RET_ERR(yellowstone.GetDenali(empty, denali_info));
|
||||
dbgln("LBA (recv): %u", denali_info.lba_offset());
|
||||
ScopedDenaliClient denali(
|
||||
EndpointClient::AdoptEndpoint(denali_info.denali_endpoint()),
|
||||
denali_info.device_id(), denali_info.lba_offset());
|
||||
ScopedDenaliClient denali(denali_info.denali_endpoint(),
|
||||
denali_info.device_id(), denali_info.lba_offset());
|
||||
ASSIGN_OR_RETURN(Ext2Driver ext2, Ext2Driver::Init(glcr::Move(denali)));
|
||||
|
||||
ASSIGN_OR_RETURN(Inode * root, ext2.GetInode(2));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue