cloud-hypervisor/block_util
Wei Liu af770c814b block_util: provide and use AsyncAdaptor trait
The observation is that the code in question was used to bridge
synchronized and asynchronized code.

We can group the functions for that purpose under an adaptor trait. To
limit the scope of locking, the users of the trait are required to
implement a method to return a MutexGuard for the underlying file.

This then allows us to use concrete types (QcowFile and Vhdx) in code,
which is easier to read than a bunch of traits.

No functional change intended.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
2021-12-06 15:20:29 +01:00
..
src block_util: provide and use AsyncAdaptor trait 2021-12-06 15:20:29 +01:00
Cargo.toml build: bump libc from 0.2.107 to 0.2.108 2021-11-23 00:05:13 +00:00