FastCopy fastCopy = new FastCopy(conf);
cluster.shutdownDataNode(0, true);
try {
DistributedFileSystem dfs = (DistributedFileSystem) fs;
for (String fileName : util.getFileNames(topDir)) {
fastCopy.copy(fileName, fileName + "dst", dfs, dfs);
assertTrue(fs.exists(new Path(fileName + "dst")));
// assert the hard links.
String[] hardlinks = dfs.getHardLinkedFiles(new Path(fileName));
for (String hardLink : hardlinks) {
assertEquals(hardLink, fileName + "dst");