crosvm/qcow_utils
Daniel Verkamp 1ba620d821 qcow_utils: use DiskFile trait from disk crate
Drop the local DiskFile trait definition from qcow_utils and use the one
defined by the disk crate, since qcow_utils already depends on disk.

In order to make the switch, use the DiskGetLen::get_len function
instead of seeking to the end of the file to get the current file size.

BUG=None
TEST=emerge-nami crosvm
TEST=cargo build -p qcow_utils

Change-Id: Ie4b3b8ee0fb11ef02fbc322c5b0f9e22b0345bb0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2056991
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2020-02-19 00:46:39 +00:00
..
src qcow_utils: use DiskFile trait from disk crate 2020-02-19 00:46:39 +00:00
Cargo.toml disk: move qcow into disk crate 2020-01-06 21:26:38 +00:00
libqcow_utils.pc.in qcow_utils: add pkgconfig script 2018-02-01 21:29:32 -08:00
platform2_preinstall.sh qcow_utils: add pkgconfig script 2018-02-01 21:29:32 -08:00