mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Implement AsFd for both RawFile and QcowRawFile by delegating to the inner File handle. This enables safe fd borrowing through the standard AsFd trait, which is a prerequisite for replacing unsafe libc::dup calls with BorrowedFd::try_clone_to_owned(). Suggested-by: Rob Bradford <rbradford@rivosinc.com> Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>