A class of XOR erasure codes with optimal repair bandwidth for data nodes