mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-12-25 20:45:00 +00:00
95a8868aef
Add a simple implementation of WriteZeroes for QcowFile that just writes zeroes to allocated clusters and skips clusters that are already unallocated (since they already read back as zeroes). BUG=chromium:850998 TEST=cargo test -p qcow Change-Id: I8f26c8cc4016c129850aaf08c7188dfe08d6dacb Signed-off-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1187018 Reviewed-by: Dylan Reid <dgreid@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org>
12 lines
187 B
TOML
12 lines
187 B
TOML
[package]
|
|
name = "qcow"
|
|
version = "0.1.0"
|
|
authors = ["The Chromium OS Authors"]
|
|
|
|
[lib]
|
|
path = "src/qcow.rs"
|
|
|
|
[dependencies]
|
|
byteorder = "*"
|
|
libc = "*"
|
|
sys_util = { path = "../sys_util" }
|