block: Move QCOW2 format files into formats/qcow/

Move QCOW2 format implementation into a structured directory layout:

  qcow/              -> formats/qcow/internal/  (filenames unchanged)
  qcow_disk.rs       -> formats/qcow/mod.rs               (QcowDisk)
  qcow_sync.rs       -> formats/qcow/worker/sync.rs       (QcowSync)
  qcow_async.rs      -> formats/qcow/worker/async_uring.rs (QcowAsync)
  qcow_common.rs     -> formats/qcow/common.rs

All internal cross references continue to resolve through
re-exports in lib.rs: formats::qcow::internal as qcow,
formats::qcow as qcow_disk, and
formats::qcow::common as qcow_common.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
Anatol Belski
2026-04-25 14:43:56 +02:00
committed by Rob Bradford
parent b595f1dbc3
commit 25afb8898c
19 changed files with 71 additions and 53 deletions

View File

@@ -15,12 +15,6 @@ pub mod factory;
mod io_impl;
pub use io_impl::{async_io, fcntl, request};
pub mod formats;
pub mod qcow;
#[cfg(feature = "io_uring")]
pub(crate) mod qcow_async;
pub(crate) mod qcow_common;
pub mod qcow_disk;
pub(crate) mod qcow_sync;
mod sparse;
use std::alloc::{Layout, alloc_zeroed};
use std::fmt::{self, Debug};
@@ -33,6 +27,7 @@ use std::path::Path;
use std::str::FromStr;
use std::{cmp, mem, result};
pub use formats::qcow::internal as qcow;
pub use formats::raw as raw_disk;
pub use formats::vhdx::internal as vhdx;
#[cfg(feature = "io_uring")]