block: vhd: impl DiskFd for FixedVhdDiskAsync

Delegate to FixedVhd::as_raw_fd().

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
Anatol Belski
2026-03-24 17:06:38 +01:00
committed by Bo Chen
parent 42af5913d9
commit 2973987c81

View File

@@ -68,6 +68,12 @@ impl disk_file::PhysicalSize for FixedVhdDiskAsync {
}
}
impl disk_file::DiskFd for FixedVhdDiskAsync {
fn fd(&self) -> BorrowedDiskFd<'_> {
BorrowedDiskFd::new(self.0.as_raw_fd())
}
}
pub struct FixedVhdAsync {
raw_file_async: RawFileAsync,
size: u64,