[VFS] Skeleton for moving victoria falls to rust.
This commit is contained in:
parent
59efb1659a
commit
a806e41af0
11 changed files with 130 additions and 3 deletions
|
|
@ -7,6 +7,8 @@ edition = "2021"
|
|||
mammoth = { path = "../../lib/mammoth" }
|
||||
yellowstone-yunq = { path = "../../lib/yellowstone" }
|
||||
yunq = { path = "../../lib/yunq" }
|
||||
denali_client = { path = "../../lib/client/denali_client" }
|
||||
ext2 = { path = "../../lib/fs/ext2" }
|
||||
|
||||
[build-dependencies]
|
||||
yunqc = { path = "../../../yunq/rust" }
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
#![no_std]
|
||||
#![no_main]
|
||||
|
||||
use mammoth::{define_entry, zion::z_err_t};
|
||||
use denali_client::{DenaliClient, DiskReader};
|
||||
use ext2::Ext2Driver;
|
||||
use mammoth::{cap::Capability, define_entry, zion::z_err_t};
|
||||
|
||||
define_entry!();
|
||||
|
||||
|
|
@ -9,7 +11,14 @@ define_entry!();
|
|||
extern "C" fn main() -> z_err_t {
|
||||
let yellowstone = yellowstone_yunq::from_init_endpoint();
|
||||
|
||||
let denali = yellowstone.get_denali().unwrap();
|
||||
let denali_info = yellowstone.get_denali().unwrap();
|
||||
let client = DenaliClient::new(Capability::take(denali_info.denali_endpoint));
|
||||
|
||||
let driver = Ext2Driver::new(DiskReader::new(
|
||||
client,
|
||||
denali_info.device_id,
|
||||
denali_info.lba_offset,
|
||||
));
|
||||
|
||||
0
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue