@Override
public int user_createFile(String path, String ufsPath, long blockSizeByte, boolean recursive)
throws FileAlreadyExistException, InvalidPathException, BlockInfoException,
SuspectedFileSizeException, TachyonException, TException {
if (!ufsPath.isEmpty()) {
UnderFileSystem underfs = UnderFileSystem.get(ufsPath);
try {
long ufsBlockSizeByte = underfs.getBlockSizeByte(ufsPath);
long fileSizeByte = underfs.getFileSize(ufsPath);
int fileId = mMasterInfo.createFile(new TachyonURI(path), ufsBlockSizeByte, recursive);
if (fileId != -1
&& mMasterInfo.addCheckpoint(-1, fileId, fileSizeByte, new TachyonURI(ufsPath))) {
return fileId;
}