block: vhd: impl DiskFd for FixedVhdDiskSync

Delegate to FixedVhd::as_raw_fd() for the backing file descriptor.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
Anatol Belski
2026-03-24 09:33:16 +01:00
committed by Bo Chen
parent 266c5fc241
commit dfa9a25fd8

View File

@@ -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,