FreeBSD/contrib/subversion/subversion/libsvn_fs_x/cached_data.c
/* Open the representation REP for a node-revision in filesystem FS, seek
   to its position and store the newly opened file in FILE.

   Allocate the result in RESULT_POOL and temporaries in SCRATCH_POOL. */
Open the representation REP for a node-revision in filesystem FS, seek
to its position and store the newly opened file in FILE.

Allocate the result in RESULT_POOL and temporaries in SCRATCH_POOL.
Open the representation REP for a node - revision in filesystem FS seek to its position and store the newly opened file in FILE . Allocate the result in RESULT_POOL and temporaries in SCRATCH_POOL .
static svn_error_t *
open_and_seek_transaction(svn_fs_x__revision_file_t **file,
                          svn_fs_t *fs,
                          svn_fs_x__representation_t *rep,
                          apr_pool_t *result_pool,
                          apr_pool_t *scratch_pool)
{
  apr_off_t offset;
  apr_uint32_t sub_item = 0;
  apr_int64_t txn_id = svn_fs_x__get_txn_id(rep->id.change_set);
  SVN_ERR(svn_fs_x__open_proto_rev_file(file, fs, txn_id, result_pool,
                                        scratch_pool));
  SVN_ERR(svn_fs_x__item_offset(&offset, &sub_item, fs, *file, &rep->id,
                                scratch_pool));
  SVN_ERR(aligned_seek(fs, (*file)->file, NULL, offset, scratch_pool));
  return SVN_NO_ERROR;
}
static svn_error_t * open_and_seek_transaction ( svn_fs_x__revision_file_t * * file , svn_fs_t * fs , svn_fs_x__representation_t * rep , apr_pool_t * result_pool , apr_pool_t * scratch_pool ) { apr_off_t offset ; apr_uint32_t sub_item = 0 ; apr_int64_t txn_id = svn_fs_x__get_txn_id ( rep -> id . change_set ) ; SVN_ERR ( svn_fs_x__open_proto_rev_file ( file , fs , txn_id , result_pool , scratch_pool ) ) ; SVN_ERR ( svn_fs_x__item_offset ( & offset , & sub_item , fs , * file , & rep -> id , scratch_pool ) ) ; SVN_ERR ( aligned_seek ( fs , ( * file ) -> file , NULL , offset , scratch_pool ) ) ; return SVN_NO_ERROR ; }
Open the representation REP for a node-revision in filesystem FS, seek
to its position and store the newly opened file in FILE.
Open the representation REP for a node - revision in filesystem FS seek to its position and store the newly opened file in FILE .