FreeBSD/contrib/subversion/subversion/libsvn_fs_fs/index.c
/* If REV_FILE->L2P_STREAM is NULL, create a new stream for the log-to-phys
 * index for REVISION in FS and return it in REV_FILE.
 */
If REV_FILE->L2P_STREAM is NULL, create a new stream for the log-to-phys
index for REVISION in FS and return it in REV_FILE.
If REV_FILE - > L2P_STREAM is NULL create a new stream for the log - to - phys index for REVISION in FS and return it in REV_FILE .
static svn_error_t *
auto_open_l2p_index(svn_fs_fs__revision_file_t *rev_file,
                    svn_fs_t *fs,
                    svn_revnum_t revision)
{
  if (rev_file->l2p_stream == NULL)
    {
      fs_fs_data_t *ffd = fs->fsap_data;
      SVN_ERR(svn_fs_fs__auto_read_footer(rev_file));
      SVN_ERR(packed_stream_open(&rev_file->l2p_stream,
                                 rev_file->file,
                                 rev_file->l2p_offset,
                                 rev_file->p2l_offset,
                                 L2P_STREAM_PREFIX,
                                 (apr_size_t)ffd->block_size,
                                 rev_file->pool,
                                 rev_file->pool));
    }
  return SVN_NO_ERROR;
}
static svn_error_t * auto_open_l2p_index ( svn_fs_fs__revision_file_t * rev_file , svn_fs_t * fs , svn_revnum_t revision ) { if ( rev_file -> l2p_stream == NULL ) { fs_fs_data_t * ffd = fs -> fsap_data ; SVN_ERR ( svn_fs_fs__auto_read_footer ( rev_file ) ) ; SVN_ERR ( packed_stream_open ( & rev_file -> l2p_stream , rev_file -> file , rev_file -> l2p_offset , rev_file -> p2l_offset , L2P_STREAM_PREFIX , ( apr_size_t ) ffd -> block_size , rev_file -> pool , rev_file -> pool ) ) ; } return SVN_NO_ERROR ; }
If REV_FILE->L2P_STREAM is NULL, create a new stream for the log-to-phys
 index for REVISION in FS and return it in REV_FILE.
If REV_FILE - > L2P_STREAM is NULL create a new stream for the log - to - phys index for REVISION in FS and return it in REV_FILE .