Updates: 1. Changed infinite loop check in collect_image_info_list() from filename checking to inode checking. 2. Absolute or relative path is OK for filename path. 3. Hard and soft link are works well. 4. Added WIN32 platform support (shortcuts could be recognized correctly.) 5. Create a file which contains loop in backing file will failed. 6. Start a vm which boot block file contains loop in backing file chain will failed instead of no response and segment fault.
Xu Wang (5): Refine and export infinite loop checking in collect_image_info_list() Add WIN32 platform support for backing_file_loop_check() Check infinite loop in bdrv_img_create() Add backing file loop check in change_backing_file() Add infinite loop check in drive_init() block.c | 211 ++++++++++++++++++++++++++++++++++++++++++++++++-- blockdev.c | 5 ++ include/block/block.h | 4 + qemu-img.c | 30 +++---- 4 files changed, 224 insertions(+), 26 deletions(-) -- 1.8.1.4