mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 12:34:31 +00:00
6cde4e3b9e
The disk crate is now responsible for opening the file and handling options like OVERLAPPED and O_DIRECT. O_DIRECT is now applied to all nested disk files. For now, OVERLAPPED contiues to only apply to the root disk file. BUG=b:330911976 BUG=b:190435784 Change-Id: Ib46a965c0589bf1c1e8e4ae5f0c81747530eff98 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5842394 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Frederick Mayle <fmayle@google.com>
41 lines
1,013 B
TOML
41 lines
1,013 B
TOML
[package]
|
|
name = "disk"
|
|
version = "0.1.0"
|
|
authors = ["The ChromiumOS Authors"]
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
path = "src/disk.rs"
|
|
|
|
[features]
|
|
android-sparse = []
|
|
composite-disk = ["crc32fast", "protos", "protobuf", "uuid"]
|
|
qcow = []
|
|
|
|
[dependencies]
|
|
async-trait = "0.1.36"
|
|
base = { path = "../base" }
|
|
cfg-if = "1.0.0"
|
|
crc32fast = { version = "1.2.1", optional = true }
|
|
cros_async = { path = "../cros_async" }
|
|
data_model = { path = "../common/data_model" }
|
|
libc = "0.2"
|
|
protobuf = { version = "3.2", optional = true }
|
|
protos = { path = "../protos", features = ["composite-disk"], optional = true }
|
|
remain = "0.2"
|
|
serde = { version = "1", features = [ "derive" ] }
|
|
sync = { path = "../common/sync" }
|
|
thiserror = "1"
|
|
uuid = { version = "1", features = ["v4"], optional = true }
|
|
vm_memory = { path = "../vm_memory" }
|
|
zerocopy = { version = "0.7", features = ["derive"] }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
winapi = "0.3"
|
|
|
|
[dependencies.futures]
|
|
version = "0.3"
|
|
default-features = false
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|