IOException, BlockInfoException {
int fileId = BlockInfo.computeInodeId(blockId);
synchronized (mRootLock) {
Inode inode = mFileIdToInodes.get(fileId);
if (inode == null || inode.isDirectory()) {
throw new FileDoesNotExistException("FileId " + fileId + " does not exist.");
}
ClientBlockInfo ret =
((InodeFile) inode).getClientBlockInfo(BlockInfo.computeBlockIndex(blockId));
LOG.debug("getClientBlockInfo: {} : {}", blockId, ret);
return ret;