mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
block: Remove vhdx compat alias
Re-export Vhdx from formats::vhdx and update the fuzz target to use block::formats::vhdx::Vhdx. Remove the vhdx compat alias from lib.rs. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
2c8978bbf2
commit
c80aaa1b58
@@ -16,9 +16,8 @@ use std::fs::File;
|
|||||||
use std::os::fd::AsRawFd;
|
use std::os::fd::AsRawFd;
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
|
|
||||||
pub use internal::VhdxError;
|
pub use internal::{Vhdx, VhdxError};
|
||||||
|
|
||||||
use self::internal::Vhdx;
|
|
||||||
use self::worker::sync::VhdxSync;
|
use self::worker::sync::VhdxSync;
|
||||||
use crate::async_io::{AsyncIo, BorrowedDiskFd, DiskFileError};
|
use crate::async_io::{AsyncIo, BorrowedDiskFd, DiskFileError};
|
||||||
use crate::error::{BlockError, BlockErrorKind, BlockResult, ErrorOp};
|
use crate::error::{BlockError, BlockErrorKind, BlockResult, ErrorOp};
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ use std::str::FromStr;
|
|||||||
use std::{cmp, mem, result};
|
use std::{cmp, mem, result};
|
||||||
|
|
||||||
use formats::qcow::internal as qcow;
|
use formats::qcow::internal as qcow;
|
||||||
pub use formats::vhdx::internal as vhdx;
|
|
||||||
#[cfg(feature = "io_uring")]
|
#[cfg(feature = "io_uring")]
|
||||||
use io_uring::{IoUring, Probe, opcode};
|
use io_uring::{IoUring, Probe, opcode};
|
||||||
use libc::{
|
use libc::{
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use std::fs::File;
|
|||||||
use std::io::{self, Read, Seek, SeekFrom, Write};
|
use std::io::{self, Read, Seek, SeekFrom, Write};
|
||||||
use std::os::unix::io::{FromRawFd, RawFd};
|
use std::os::unix::io::{FromRawFd, RawFd};
|
||||||
|
|
||||||
use block::vhdx::Vhdx;
|
use block::formats::vhdx::Vhdx;
|
||||||
use libfuzzer_sys::{fuzz_target, Corpus};
|
use libfuzzer_sys::{fuzz_target, Corpus};
|
||||||
|
|
||||||
// Populate the corpus directory with a test file:
|
// Populate the corpus directory with a test file:
|
||||||
|
|||||||
Reference in New Issue
Block a user