/** * Convert a specified block of the file to a complete block. * Skips validity checking and safe mode block total updates; use * {@link BlockManager#completeBlock} to include these. * @param curBlock - block to be completed * @param iip - INodes in path to file containing curBlock; if null, * this will be resolved internally * @throws IOException if the block does not have at least a minimal number * of replicas reported from data-nodes. */ private void convertToCompleteBlock(BlockInfo curBlock, INodesInPath iip) throws IOException { curBlock.convertToCompleteBlock(); namesystem.getFSDirectory().updateSpaceForCompleteBlock(curBlock, iip); }