summary refs log tree commit diff
path: root/src/linux.rs
diff options
context:
space:
mode:
authorDaniel Verkamp <dverkamp@chromium.org>2019-11-13 09:39:41 -0800
committerCommit Bot <commit-bot@chromium.org>2019-11-27 21:22:41 +0000
commit4cc280bcff161e08a44c83fbd5384e324b8c3585 (patch)
tree0e8413a1ec9696faeb8d5efb995fc1636fd466c7 /src/linux.rs
parent624c51bee3a8356c3e4bbdd6aef21ea45b0f4d59 (diff)
downloadcrosvm-4cc280bcff161e08a44c83fbd5384e324b8c3585.tar
crosvm-4cc280bcff161e08a44c83fbd5384e324b8c3585.tar.gz
crosvm-4cc280bcff161e08a44c83fbd5384e324b8c3585.tar.bz2
crosvm-4cc280bcff161e08a44c83fbd5384e324b8c3585.tar.lz
crosvm-4cc280bcff161e08a44c83fbd5384e324b8c3585.tar.xz
crosvm-4cc280bcff161e08a44c83fbd5384e324b8c3585.tar.zst
crosvm-4cc280bcff161e08a44c83fbd5384e324b8c3585.zip
disk: add get_len() to eliminate need for Seek
This new trait allows DiskFile implementors to provide the length of the
file directly rather than using SeekFrom::End with seek().

BUG=None
TEST=./build_test
TEST=Boot Termina in crosvm

Change-Id: I9447ebb43dbd5fbb32a3a6b6d2fc969b9406cdbc
Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1913961
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Diffstat (limited to 'src/linux.rs')
0 files changed, 0 insertions, 0 deletions