mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
block: Move VHD format files into formats/vhd/
Move VHD format implementation into a structured directory layout: fixed_vhd.rs -> formats/vhd/internal/fixed.rs (FixedVhd) fixed_vhd_disk.rs -> formats/vhd/mod.rs (VhdDisk) vhd.rs -> formats/vhd/internal/footer.rs (VhdFooter) fixed_vhd_sync.rs -> formats/vhd/worker/sync.rs (FixedVhdSync) fixed_vhd_async.rs -> formats/vhd/worker/async_uring.rs (FixedVhdAsync) Add #[allow(dead_code)] to VhdFooter struct and impl because the module is now pub(crate) and the compiler can see that several fields and getters are only exercised by unit tests. Re-export formats::vhd as fixed_vhd_disk in lib.rs for backward compatibility with external consumers. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
a11f551572
commit
1ca0c39b4d
@@ -20,8 +20,8 @@ use log::info;
|
||||
use crate::block_io_uring_is_supported;
|
||||
use crate::disk_file::AsyncFullDiskFile;
|
||||
use crate::error::{BlockError, BlockErrorKind, BlockResult};
|
||||
use crate::fixed_vhd_disk::VhdDisk;
|
||||
use crate::formats::raw::{RawBackend, RawDisk};
|
||||
use crate::formats::vhd::VhdDisk;
|
||||
use crate::qcow_disk::QcowDisk;
|
||||
use crate::vhdx_sync::VhdxDisk;
|
||||
use crate::{
|
||||
|
||||
Reference in New Issue
Block a user