mirror of
https://github.com/edera-dev/krata.git
synced 2026-11-04 21:22:20 +00:00
Use native loopdev implementation instead of loopdev-3 (#209)
* feature(loopdev): add native loop device implementation The previous loop device implementation required bindgen for no reason, making cross-compilation difficult. Signed-off-by: Ariadne Conill <[email protected]> * feat(runtime): use native krata-loopdev instead of loopdev-3 Signed-off-by: Ariadne Conill <[email protected]> * chore: update cargo workspace lock file Signed-off-by: Ariadne Conill <[email protected]> * chore: appease formatting linter Signed-off-by: Ariadne Conill <[email protected]> --------- Signed-off-by: Ariadne Conill <[email protected]>
This commit is contained in:
1 parent
88a62441b1
commit
6f50167798
6 files changed
+380
-99
No files matched your search
@@ -1,8 +1,8 @@
|
||||
use std::{sync::Arc, time::Duration};
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
use krataloopdev::{LoopControl, LoopDevice};
|
||||
use log::debug;
|
||||
use loopdev::{LoopControl, LoopDevice};
|
||||
use tokio::time::sleep;
|
||||
use xenclient::BlockDeviceRef;
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ use std::{fs, net::Ipv4Addr, path::PathBuf, str::FromStr, sync::Arc};
|
||||
use anyhow::{anyhow, Result};
|
||||
use ip::IpVendor;
|
||||
use ipnetwork::{IpNetwork, Ipv4Network, Ipv6Network};
|
||||
use krataloopdev::LoopControl;
|
||||
use log::error;
|
||||
use loopdev::LoopControl;
|
||||
use tokio::sync::Semaphore;
|
||||
use uuid::Uuid;
|
||||
use xenclient::XenClient;
|
||||
|
||||
Reference in new issue
Block a user