assert srcNSDir.exists() : "Source directory must exist.";
File mergeTmpNSDir = nsStorage.getNsRoot(mergeTmpDir);
File srcCurNsDir = new File(srcNSDir, STORAGE_DIR_CURRENT);
File mergeTmpCurNSDir = new File(mergeTmpNSDir, STORAGE_DIR_CURRENT);
// hardlink all blocks
HardLink hardLink = new HardLink();
linkBlocks(new File(srcCurNsDir, STORAGE_DIR_FINALIZED),
new File(mergeTmpCurNSDir, STORAGE_DIR_FINALIZED),
nsInfo.getLayoutVersion(), hardLink, true);
linkBlocks(new File(srcCurNsDir, STORAGE_DIR_RBW),
new File(mergeTmpCurNSDir, STORAGE_DIR_RBW),