mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
55ef29aaa3
The qcow disk format implemented the discard and write zeroes requests by deallocating the underlying cluster when possible, with the assumption that a deallocated cluster would return all zeroes if it is read until it is written again. Add an alternate implementation of write_zeroes that is used when a backing file is present that uses the straightforward approach of allocating all clusters and zeroing them out in the raw file rather than using deallocation. BUG=b:171230599 TEST=BLKZEROOUT test case TEST=cargo test -p disk Change-Id: I745f6dc7aa411ec9b1be0150ba1bc96c011ada9a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2490605 Reviewed-by: Dylan Reid <dgreid@chromium.org> Reviewed-by: Cody Schuffelen <schuffelen@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |