svn_fs_create2

Function svn_fs_create2 

Source
pub unsafe extern "C" fn svn_fs_create2(
    fs_p: *mut *mut svn_fs_t,
    path: *const c_char,
    fs_config: *mut apr_hash_t,
    result_pool: *mut apr_pool_t,
    scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Create a new, empty Subversion filesystem, stored in the directory @a path, and return a pointer to it in @a *fs_p. @a path must not currently exist, but its parent must exist. If @a fs_config is not @c NULL, the options it contains modify the behavior of the filesystem. The interpretation of @a fs_config is specific to the filesystem back-end. The new filesystem may be closed by destroying @a result_pool.

Use @a scratch_pool for temporary allocations.

@note The lifetime of @a fs_config must not be shorter than @a result_pool’s. It’s a good idea to allocate @a fs_config from @a result_pool or one of its ancestors.

If @a fs_config contains a value for #SVN_FS_CONFIG_FS_TYPE, that value determines the filesystem type for the new filesystem. Currently defined values are:

SVN_FS_TYPE_BDB Berkeley-DB implementation SVN_FS_TYPE_FSFS Native-filesystem implementation SVN_FS_TYPE_FSX Experimental filesystem implementation

If @a fs_config is @c NULL or does not contain a value for #SVN_FS_CONFIG_FS_TYPE then the default filesystem type will be used. This will typically be BDB for version 1.1 and FSFS for later versions, though the caller should not rely upon any particular default if they wish to ensure that a filesystem of a specific type is created.

@since New in 1.10.