003 File Manager
Current Path:
/usr/src/contrib/subversion/subversion/libsvn_fs_x
usr
/
src
/
contrib
/
subversion
/
subversion
/
libsvn_fs_x
/
📁
..
📄
TODO
(9.58 KB)
📄
batch_fsync.c
(17.36 KB)
📄
batch_fsync.h
(3.74 KB)
📄
cached_data.c
(124.18 KB)
📄
cached_data.h
(8.98 KB)
📄
caching.c
(25.26 KB)
📄
changes.c
(18.9 KB)
📄
changes.h
(5.56 KB)
📄
dag.c
(33.9 KB)
📄
dag.h
(18.94 KB)
📄
dag_cache.c
(37.62 KB)
📄
dag_cache.h
(6.8 KB)
📄
fs.c
(20.49 KB)
📄
fs.h
(20.55 KB)
📄
fs_id.c
(9.6 KB)
📄
fs_id.h
(2.37 KB)
📄
fs_init.h
(1.24 KB)
📄
fs_x.c
(51.32 KB)
📄
fs_x.h
(8.89 KB)
📄
hotcopy.c
(32.16 KB)
📄
hotcopy.h
(2.05 KB)
📄
id.c
(4.92 KB)
📄
id.h
(4.41 KB)
📄
index.c
(136.28 KB)
📄
index.h
(17.5 KB)
📄
libsvn_fs_x.pc.in
(387 B)
📄
lock.c
(45.17 KB)
📄
lock.h
(3.94 KB)
📄
low_level.c
(40.89 KB)
📄
low_level.h
(9.21 KB)
📄
noderevs.c
(31.18 KB)
📄
noderevs.h
(5.39 KB)
📄
pack.c
(82.45 KB)
📄
pack.h
(2.33 KB)
📄
recovery.c
(12.25 KB)
📄
recovery.h
(1.46 KB)
📄
rep-cache-db.h
(2.25 KB)
📄
rep-cache-db.sql
(2.23 KB)
📄
rep-cache.c
(14 KB)
📄
rep-cache.h
(4.26 KB)
📄
reps.c
(29.63 KB)
📄
reps.h
(7.3 KB)
📄
rev_file.c
(17.15 KB)
📄
rev_file.h
(7.15 KB)
📄
revprops.c
(59.51 KB)
📄
revprops.h
(4.99 KB)
📄
string_table.c
(29.61 KB)
📄
string_table.h
(5.06 KB)
📄
structure
(14.88 KB)
📄
temp_serializer.c
(37.31 KB)
📄
temp_serializer.h
(10.7 KB)
📄
transaction.c
(147.9 KB)
📄
transaction.h
(13.26 KB)
📄
tree.c
(120.57 KB)
📄
tree.h
(3.98 KB)
📄
util.c
(22.6 KB)
📄
util.h
(16.85 KB)
📄
verify.c
(30.47 KB)
📄
verify.h
(1.78 KB)
Editing: revprops.h
/* revprops.h --- everything needed to handle revprops in FSX * * ==================================================================== * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * ==================================================================== */ #ifndef SVN_LIBSVN_FS_X_REVPROPS_H #define SVN_LIBSVN_FS_X_REVPROPS_H #include "svn_fs.h" #include "batch_fsync.h" #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /* Auto-create / replace the revprop generation file in FS with its * initial contents. In any case, FS will not hold an open handle to * it after this function succeeds. * * Use SCRATCH_POOL for temporary allocations. */ svn_error_t * svn_fs_x__reset_revprop_generation_file(svn_fs_t *fs, apr_pool_t *scratch_pool); /* Invalidate the cached revprop generation value in FS->FSAP_DATA. * This enforces a re-read upon the next revprop read. */ void svn_fs_x__invalidate_revprop_generation(svn_fs_t *fs); /* Utility function serializing PROPLIST into FILE and adding the checksum. * Use SCRATCH_POOL for temporary allocations. * * Call this only when creating initial revprop file contents. * For modifications use svn_fs_x__set_revision_proplist. */ svn_error_t * svn_fs_x__write_non_packed_revprops(apr_file_t *file, apr_hash_t *proplist, apr_pool_t *scratch_pool); /* Read the revprops for revision REV in FS and return them in *PROPLIST_P. * If BYPASS_CACHE is set, don't consult the disks but always read from disk. * If REFRESH is set, update the revprop generation info; otherwise access * potentially outdated cache data directly. * * Allocate the *PROPLIST_P in RESULT_POOL and use SCRATCH_POOL for temporary * allocations. */ svn_error_t * svn_fs_x__get_revision_proplist(apr_hash_t **proplist_p, svn_fs_t *fs, svn_revnum_t rev, svn_boolean_t bypass_cache, svn_boolean_t refresh, apr_pool_t *result_pool, apr_pool_t *scratch_pool); /* Set the revision property list of revision REV in filesystem FS to PROPLIST. Use SCRATCH_POOL for temporary allocations. */ svn_error_t * svn_fs_x__set_revision_proplist(svn_fs_t *fs, svn_revnum_t rev, apr_hash_t *proplist, apr_pool_t *scratch_pool); /* Return TRUE, if for REVISION in FS, we can find the revprop pack file. * Use SCRATCH_POOL for temporary allocations. * Set *MISSING, if the reason is a missing manifest or pack file. */ svn_boolean_t svn_fs_x__packed_revprop_available(svn_boolean_t *missing, svn_fs_t *fs, svn_revnum_t revision, apr_pool_t *scratch_pool); /****** Packing FSX shards *********/ /* For the revprop SHARD at SHARD_PATH with exactly MAX_FILES_PER_DIR * revprop files in it, create a packed shared at PACK_FILE_DIR in * filesystem FS. Schedule necessary fsync calls in BATCH. * * COMPRESSION_LEVEL defines how well the resulting pack file shall be * compressed or whether is shall be compressed at all. Individual pack * file containing more than one revision will be limited to a size of * MAX_PACK_SIZE bytes before compression. * * CANCEL_FUNC and CANCEL_BATON are used in the usual way. Temporary * allocations are done in SCRATCH_POOL. */ svn_error_t * svn_fs_x__pack_revprops_shard(svn_fs_t *fs, const char *pack_file_dir, const char *shard_path, apr_int64_t shard, int max_files_per_dir, apr_int64_t max_pack_size, int compression_level, svn_fs_x__batch_fsync_t *batch, svn_cancel_func_t cancel_func, void *cancel_baton, apr_pool_t *scratch_pool); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* SVN_LIBSVN_FS_X_REVPROPS_H */
Upload File
Create Folder