The interaction of superconducting flux lines with dislocations