From dfa9a25fd8a32469122b27958907c57162dae5ea Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Tue, 24 Mar 2026 09:33:16 +0100 Subject: [PATCH] block: vhd: impl DiskFd for FixedVhdDiskSync Delegate to FixedVhd::as_raw_fd() for the backing file descriptor. Signed-off-by: Anatol Belski --- block/src/fixed_vhd_sync.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/block/src/fixed_vhd_sync.rs b/block/src/fixed_vhd_sync.rs index 15624eada..778ab1653 100644 --- a/block/src/fixed_vhd_sync.rs +++ b/block/src/fixed_vhd_sync.rs @@ -70,6 +70,12 @@ impl disk_file::PhysicalSize for FixedVhdDiskSync { } } +impl disk_file::DiskFd for FixedVhdDiskSync { + fn fd(&self) -> BorrowedDiskFd<'_> { + BorrowedDiskFd::new(self.0.as_raw_fd()) + } +} + pub struct FixedVhdSync { raw_file_sync: RawFileSync, size: u64,