From 2973987c811240b1e78844da8863099fe33e2936 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Tue, 24 Mar 2026 17:06:38 +0100 Subject: [PATCH] block: vhd: impl DiskFd for FixedVhdDiskAsync Delegate to FixedVhd::as_raw_fd(). Signed-off-by: Anatol Belski --- block/src/fixed_vhd_async.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/block/src/fixed_vhd_async.rs b/block/src/fixed_vhd_async.rs index 5b15d5207..b5b622e7e 100644 --- a/block/src/fixed_vhd_async.rs +++ b/block/src/fixed_vhd_async.rs @@ -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,