crosvm/disk/src/qcow
Daniel Verkamp be451c2a8c disk: qcow: pass raw file offset in write_cb
Modify the write callback function to take the offset into the raw
(backing) file as a parameter rather than seeking to the expected
location of the write. This allows removal of the FileReadWriteVolatile
import in qcow, since this was the last use. This also matches the
read_cb, which already passed the backing file offset explicitly.

BUG=b:219595052
TEST=tools/presubmit

Change-Id: I4ac18d4dbe26e8b196eb8a9c056036565eb39501
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3462641
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2022-02-17 22:04:24 +00:00
..
mod.rs disk: qcow: pass raw file offset in write_cb 2022-02-17 22:04:24 +00:00
qcow_raw_file.rs Add "base" crate and transition crosvm usages to it from sys_util 2020-08-06 18:19:44 +00:00
refcount.rs qcow_utils: remove qcow_img utility and debug fns 2022-02-17 22:04:20 +00:00
vec_cache.rs clippy: fix disk crate 2022-02-07 22:22:38 +00:00