rust-vmm / vm-virtio

virtio implementation
Apache License 2.0
361 stars 87 forks source link

blk: add methods to retrieve the backing object from `StdIoBackend` #274

Closed 00xc closed 9 months ago

00xc commented 9 months ago

Summary of the PR

Add three methods to retrieve the inner B from an StdIoBackend. This is useful to inspect or save the inner state of the backend object.

Requirements

Before submitting your PR, please make sure you addressed the following requirements:

00xc commented 9 months ago
  • [ ] All added/changed public-facing functionality has entries in the "Upcoming Release" section of CHANGELOG.md (if no such section exists, please create one).

Left this unchecked because there is no changelog for virtio-blk.

00xc commented 9 months ago

Rebased on main

00xc commented 9 months ago

CI failure should be unrelated.