acadia/sys/victoriafalls/victoriafalls.cpp
Drew Galbraith 21c1a001ea [victoriafalls] Move the block to lba translation to a small wrapper.
Abstract this away into a thin wrapper over the denali client such that
it can be called from other helper classes.
2023-07-05 23:19:25 -07:00

19 lines
450 B
C++

#include <mammoth/debug.h>
#include <mammoth/init.h>
#include <yellowstone_stub.h>
#include "fs/ext2/ext2_driver.h"
uint64_t main(uint64_t init_cap) {
ParseInitPort(init_cap);
dbgln("VFs Started");
YellowstoneStub yellowstone(gInitEndpointCap);
ASSIGN_OR_RETURN(ScopedDenaliClient denali, yellowstone.GetDenali());
ASSIGN_OR_RETURN(Ext2Driver ext2, Ext2Driver::Init(glcr::Move(denali)));
check(ext2.ProbePartition());
return 0;
}