mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
QCOW2 backing file paths stored in image headers may be relative. These paths should be interpreted relative to the image that references them, but the block backend opened them relative to the process working directory. Resolve the current image path inside parse_qcow() from the open file descriptor and use its parent directory for relative backing paths. Recursive backing chains work the same way because each layer is parsed from its own file descriptor. Signed-off-by: Rowen-Ye <rowenye1@gmail.com>