Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/xfstests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ jobs:
override: true
- name: Build passthrough binary
run: |
cd tests/passthrough
cargo build --release
cargo build --release -p passthrough
sudo install -t /usr/sbin/ -m 700 ./target/release/passthrough
- name: Setup and run xfstest
run: |
Expand All @@ -45,8 +44,7 @@ jobs:
override: true
- name: Build overlay binary
run: |
cd tests/overlay
cargo build --release
cargo build --release -p overlay
sudo install -t /usr/sbin/ -m 700 ./target/release/overlay
- name: Setup and run xfstest
run: |
Expand All @@ -66,8 +64,7 @@ jobs:
override: true
- name: Build overlay binary
run: |
cd tests/overlay
cargo build --release
cargo build --release -p overlay
sudo install -t /usr/sbin/ -m 700 ./target/release/overlay
- name: Setup and run unionmount testsuite
run: |
Expand Down
24 changes: 19 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@ repository = "https://github.com/cloud-hypervisor/fuse-backend-rs"
homepage = "https://github.com/cloud-hypervisor/"
build = "build.rs"

[workspace]
members = [
"tests/passthrough",
"tests/overlay",
]

[workspace.dependencies]
# rust-vmm crates
vhost = "0.11.0"
virtio-bindings = "=0.2.4"
virtio-queue = "0.12.0"
vm-memory = "0.14.1"
vmm-sys-util = "0.12.1"

[dependencies]
arc-swap = "1.5"
async-trait = { version = "0.1.42", optional = true }
Expand All @@ -30,11 +44,11 @@ nix = "0.24"
radix_trie = "0.2.1"
tokio = { version = "1", optional = true }
tokio-uring = { version = "0.4.0", optional = true }
vmm-sys-util = { version = "0.12.1", optional = true }
vm-memory = { version = "0.14.1", features = ["backend-mmap"] }
virtio-bindings = { version = "=0.2.4", optional = true }
virtio-queue = { version = "0.12.0", optional = true }
vhost = { version = "0.11.0", features = ["vhost-user","vhost-user-backend"], optional = true }
vmm-sys-util = { workspace = true, optional = true }
vm-memory = { workspace = true, features = ["backend-mmap"] }
virtio-bindings = { workspace = true, optional = true }
virtio-queue = { workspace = true, optional = true }
vhost = { workspace = true, features = ["vhost-user","vhost-user-backend"], optional = true }
versionize_derive = { version = "0.1.6", optional = true }
versionize = { version = "0.2.0", optional = true }

Expand Down
2 changes: 1 addition & 1 deletion tests/overlay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
fuse-backend-rs = { path = "../../", features = ["fusedev"] }
log = ">=0.4.6"
vmm-sys-util = ">=0.4"
vmm-sys-util = { workspace = true }
libc = ">=0.2.68"
simple_logger = ">=1.13.0"
signal-hook = ">=0.3.10"
Expand Down
8 changes: 5 additions & 3 deletions tests/passthrough/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,13 @@ impl Daemon {
let mut se =
FuseSession::new(Path::new(&self.mountpoint), "testpassthrough", "", false).unwrap();
se.mount().unwrap();

se.try_with_writer(|writer| {
self.server
.notify_resend(writer).map_err(PassthroughFsError::FuseError)
}).map_err(|_| Error::from_raw_os_error(libc::EINVAL))?;
.notify_resend(writer)
.map_err(PassthroughFsError::FuseError)
})
.map_err(|_| Error::from_raw_os_error(libc::EINVAL))?;

for _ in 0..self.thread_cnt {
let mut server = FuseServer {
Expand Down
Loading