def METHOD_NAME(vhd_info, vg_name):
    global VHDs_passed
    global VHDs_failed
    activated_list = []
    vhd_path = os.path.join(lvhdutil.VG_LOCATION, vg_name, vhd_info.path)
    if not activateVdi(
                       vg_name.lstrip(lvhdutil.VG_PREFIX),
                       vhd_info.uuid,
                       vhd_path):
        # If activation fails, do not run check, also no point on running
        # check on the VDIs down the chain
        util.SMlog("VHD activate failed for %s, skipping rest of VDH chain" %
                    vg_name)
        return activated_list
    activated_list.append([vhd_info.uuid, vhd_path])
    # Do a vhdutil check with -i option, to ignore error in primary
    if not vhdutil.check(vhd_path, True):
        util.SMlog("VHD check for %s failed, continuing with the rest!" % vg_name)
        VHDs_failed += 1
    else:
        VHDs_passed += 1
    if hasattr(vhd_info, 'children'):
        for vhd_info_sub in vhd_info.children:
            activated_list.extend(METHOD_NAME(vhd_info_sub, vg_name))
    return activated_list