mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Add fcntl to virtio_block_thread_rules to allow try_clone() on file descriptors. The try_clone() method uses fcntl(fd, F_DUPFD_CLOEXEC) to duplicate file descriptors, which is needed for efficient QCOW2 L1 table sync that avoids temporary allocations. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>