hypha: implement loop device support directly to avoid devd

This commit is contained in:
Alex Zenla
2024-01-21 00:13:05 -08:00
parent 7d9652636f
commit ba156e43da
12 changed files with 765 additions and 21 deletions

20
loopdev/Cargo.toml Normal file
View File

@ -0,0 +1,20 @@
# This package is from https://github.com/stratis-storage/loopdev-3
# Mycelium maintains an in-tree version because the goals of hypha mean that
# there is as little binding generation as possible, especially bindings which
# prevent development from macOS, like the original library.
[package]
name = "loopdev"
version = "0.0.1"
license = "MIT"
edition = "2021"
[lib]
name = "loopdev"
[dependencies]
errno = "0.3.0"
libc = "0.2.105"
[dependencies.nix]
version = "0.27.1"
features = ["ioctl"]