[libvirt] [PATCH sandbox v5 11/20] Image: Add check_connect function