vhost_user_fs: Add FUSE definitions

To be able to deal with FUSE requests, this commit introduces FUSE
definitions, copied over from the crosvm commit
961461350c0b6824e5f20655031bf6c6bf6b7c30.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2019-10-31 10:26:24 -07:00 committed by Samuel Ortiz
parent 03361a6c29
commit cd1684bd2e
4 changed files with 1057 additions and 0 deletions

5
Cargo.lock generated
View File

@ -1012,6 +1012,11 @@ dependencies = [
[[package]]
name = "vhost_user_fs"
version = "0.1.0"
dependencies = [
"bitflags 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
"libc 0.2.65 (registry+https://github.com/rust-lang/crates.io-index)",
"vm-memory 0.1.0 (git+https://github.com/rust-vmm/vm-memory)",
]
[[package]]
name = "virtio-bindings"

View File

@ -5,3 +5,6 @@ authors = ["The Cloud Hypervisor Authors"]
edition = "2018"
[dependencies]
bitflags = "1.1.0"
libc = "0.2.65"
vm-memory = { git = "https://github.com/rust-vmm/vm-memory" }

1047
vhost_user_fs/src/fuse.rs Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,5 @@
// Copyright © 2019 Intel Corporation
//
// SPDX-License-Identifier: Apache-2.0 AND BSD-3-Clause
pub mod fuse;