public void removeBlockMeta ( BlockMeta blockMeta ) throws BlockDoesNotExistException { Preconditions . checkNotNull ( blockMeta , "blockMeta" ) ; long blockId = blockMeta . getBlockId ( ) ; BlockMeta deletedBlockMeta = mBlockIdToBlockMap . remove ( blockId ) ; if ( deletedBlockMeta == null ) { throw new BlockDoesNotExistException ( ExceptionMessage . BLOCK_META_NOT_FOUND , blockId ) ; } reclaimSpace ( blockMeta . getBlockSize ( ) , true ) ; }
Removes a block from this storage dir .