FileStatus stat = lfs.get(fid);
assertTrue(TestRaidDfs.validateFile(raidfs, stat.getPath(),
lengths[fid], crcs[fid]));
// test readFully
byte[] filebytes = new byte[(int)stat.getLen()];
FSDataInputStream stm = raidfs.open(stat.getPath());
stm.readFully(0, filebytes);
CRC32 crc = new CRC32();
crc.update(filebytes, 0, filebytes.length);
assertEquals(crcs[fid], crc.getValue());
}