1 /* hotcopy.h : interface to the native filesystem layer
3 * ====================================================================
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
20 * ====================================================================
23 #ifndef SVN_LIBSVN_FS__HOTCOPY_H
24 #define SVN_LIBSVN_FS__HOTCOPY_H
28 /* Copy the fsfs filesystem SRC_FS at SRC_PATH into a new copy DST_FS at
29 * DST_PATH. If INCREMENTAL is TRUE, do not re-copy data which already
30 * exists in DST_FS. Indicate progress via the optional NOTIFY_FUNC
31 * callback using NOTIFY_BATON. Use COMMON_POOL for process-wide and
32 * POOL for temporary allocations. Use COMMON_POOL_LOCK to ensure
33 * that the initialization of the shared data is serialized. */
34 svn_error_t * svn_fs_fs__hotcopy(svn_fs_t *src_fs,
38 svn_boolean_t incremental,
39 svn_fs_hotcopy_notify_t notify_func,
41 svn_cancel_func_t cancel_func,
43 svn_mutex__t *common_pool_lock,
45 apr_pool_t *common_pool);