private LocatedBlocks createLocatedBlocks ( INode node ) throws IOException { LocatedBlocks loc = null ; if ( node instanceof INodeFile ) { loc = getFSNamesystem ( ) . getBlockLocationsInternal ( ( INodeFile ) node , 0L , Long . MAX_VALUE , Integer . MAX_VALUE ) ; } if ( loc == null ) { loc = EMPTY_BLOCK_LOCS ; } return loc ; }
Create FileStatus with location info by file INode