Varying quantity or timing by adjusting cylinder-head space