An autophagy gene, HoATG5, is involved in sporulation, cell wall integrity and infection of wounded barley leaves.