mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 12:34:31 +00:00
e539372226
Move the logic for locking and DiskFile creation into an implementation of DiskOption::open(), matching the sys::unix structure. This will allow future consolidation of the vhost-user devices. For now, the Windows variant of DiskOption::open() only knows how to create a SingleFileDisk (not qcow, composite, etc.); switching to create_disk_file() is left as future work. This also makes a few tweaks to the creation of the BlockAsync instance in order to make the unix and windows versions more similar - compare: - devices/src/virtio/vhost/user/device/block/sys/windows.rs - devices/src/virtio/vhost/user/device/block/sys/unix.rs No functional change intended. BUG=None TEST=tools/presubmit --all Change-Id: Iadb1a8913a7445d7c091d0e359c7d8792704c35a Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3892136 Commit-Queue: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Noah Gold <nkgold@google.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |