CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fs_traversal.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_SHRINKWRAP_FS_TRAVERSAL_H_
6 #define CVMFS_SHRINKWRAP_FS_TRAVERSAL_H_
7 
8 #include <string>
9 
10 #include "fs_traversal.h"
11 #include "fs_traversal_interface.h"
12 #include "statistics.h"
13 
14 
15 #define SHRINKWRAP_STAT_COUNT_FILE "cntFile"
16 #define SHRINKWRAP_STAT_COUNT_DIR "cntDir"
17 #define SHRINKWRAP_STAT_COUNT_SYMLINK "cntSymlink"
18 #define SHRINKWRAP_STAT_COUNT_BYTE "cntByte"
19 #define SHRINKWRAP_STAT_ENTRIES_SRC "entriesSrc"
20 #define SHRINKWRAP_STAT_ENTRIES_DEST "entriesDest"
21 #define SHRINKWRAP_STAT_DATA_FILES "dataFiles"
22 #define SHRINKWRAP_STAT_DATA_BYTES "dataBytes"
23 #define SHRINKWRAP_STAT_DATA_FILES_DEDUPED "dataFilesDeduped"
24 #define SHRINKWRAP_STAT_DATA_BYTES_DEDUPED "dataBytesDeduped"
25 
26 namespace shrinkwrap {
27 
28 struct fs_traversal* FindInterface(const char * type);
29 
30 int SyncInit(struct fs_traversal *src,
31  struct fs_traversal *dest,
32  const char *base,
33  const char *spec,
34  uint64_t parallel,
35  uint64_t stat_period);
36 
37 int GarbageCollect(struct fs_traversal *fs);
38 
39 // Public for testing
40 bool SyncFull(
41  struct fs_traversal *src,
42  struct fs_traversal *dest,
43  perf::Statistics *pstats,
44  uint64_t last_print_time);
45 
46 // Exported for testing purposes:
48 
49 } // namespace shrinkwrap
50 
51 #endif // CVMFS_SHRINKWRAP_FS_TRAVERSAL_H_
bool SyncFull(struct fs_traversal *src, struct fs_traversal *dest, perf::Statistics *pstats, uint64_t last_print_time)
struct fs_traversal * FindInterface(const char *type)
perf::Statistics * GetSyncStatTemplate()
int SyncInit(struct fs_traversal *src, struct fs_traversal *dest, const char *base, const char *spec, uint64_t parallel, uint64_t stat_period)
int GarbageCollect(struct fs_traversal *fs)