mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
205297ef95
Introduce `try_clone` method to `DiskFile` trait. This allows callers to create DiskFile instances which share the same underlying file descriptors, which enables you to manipulate them in multiple threads in parallel. virtio-blk requires this change to run multiple worker threads in parallel. Note `try_clone` is introduced as a method of `DiskFile`, not as a standalone `TryClone`, since such `TryClone` trait is not an object-safe and thus cannot be defined actually. BUG=b:267716786 TEST=build passes Change-Id: I8aae4ee08992de2649b7157b8dfe7328751208b5 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4281742 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Commit-Queue: Takaya Saeki <takayas@chromium.org> |
||
---|---|---|
.. | ||
qcow | ||
sys | ||
android_sparse.rs | ||
asynchronous.rs | ||
composite.rs | ||
disk.rs | ||
gpt.rs | ||
sys.rs |