CernVM-FS
2.12.0
|
Namespaces | |
anonymous_namespace{fs_traversal.cc} | |
Classes | |
struct | MainWorkerContext |
struct | MainWorkerSpecificContext |
Functions | |
struct fs_traversal * | FindInterface (const char *type) |
bool | cvmfs_attr_cmp (struct cvmfs_attr *src, struct cvmfs_attr *dest, struct fs_traversal *dest_fs) |
bool | copyFile (struct fs_traversal *src_fs, const char *src_name, struct fs_traversal *dest_fs, const char *dest_name, perf::Statistics *pstats) |
char * | get_full_path (const char *dir, const char *entry) |
bool | updateStat (struct fs_traversal *fs, const char *entry, struct cvmfs_attr **st, bool get_hash) |
bool | getNext (struct fs_traversal *fs, const char *dir, char **dir_list, char **entry, ssize_t *iter, struct cvmfs_attr **st, bool get_hash, bool is_src, perf::Statistics *pstats) |
void | list_src_dir (struct fs_traversal *src, const char *dir, char ***buf, size_t *len) |
bool | handle_file (struct fs_traversal *src, struct cvmfs_attr *src_st, struct fs_traversal *dest, struct cvmfs_attr *dest_st, const char *entry, perf::Statistics *pstats) |
bool | handle_dir (struct fs_traversal *src, struct cvmfs_attr *src_st, struct fs_traversal *dest, struct cvmfs_attr *dest_st, const char *entry) |
void | add_dir_for_sync (const char *dir, bool recursive) |
int | robust_strcmp (const char *src, const char *dest) |
bool | Sync (const char *dir, struct fs_traversal *src, struct fs_traversal *dest, bool recursive, perf::Statistics *pstats) |
bool | SyncFull (struct fs_traversal *src, struct fs_traversal *dest, perf::Statistics *pstats, uint64_t last_print_time) |
static void * | MainWorker (void *data) |
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) |
void shrinkwrap::add_dir_for_sync | ( | const char * | dir, |
bool | recursive | ||
) |
Definition at line 412 of file fs_traversal.cc.
Referenced by Sync(), and SyncInit().
bool shrinkwrap::copyFile | ( | struct fs_traversal * | src_fs, |
const char * | src_name, | ||
struct fs_traversal * | dest_fs, | ||
const char * | dest_name, | ||
perf::Statistics * | pstats | ||
) |
Definition at line 160 of file fs_traversal.cc.
Referenced by handle_file(), and MainWorker().
bool shrinkwrap::cvmfs_attr_cmp | ( | struct cvmfs_attr * | src, |
struct cvmfs_attr * | dest, | ||
struct fs_traversal * | dest_fs | ||
) |
Definition at line 120 of file fs_traversal.cc.
Referenced by Sync().
struct fs_traversal * shrinkwrap::FindInterface | ( | const char * | type | ) |
Definition at line 108 of file fs_traversal.cc.
Referenced by main().
int shrinkwrap::GarbageCollect | ( | struct fs_traversal * | fs | ) |
Definition at line 766 of file fs_traversal.cc.
Referenced by main().
char* shrinkwrap::get_full_path | ( | const char * | dir, |
const char * | entry | ||
) |
Definition at line 248 of file fs_traversal.cc.
Referenced by getNext().
bool shrinkwrap::getNext | ( | struct fs_traversal * | fs, |
const char * | dir, | ||
char ** | dir_list, | ||
char ** | entry, | ||
ssize_t * | iter, | ||
struct cvmfs_attr ** | st, | ||
bool | get_hash, | ||
bool | is_src, | ||
perf::Statistics * | pstats | ||
) |
Definition at line 271 of file fs_traversal.cc.
Referenced by Sync().
perf::Statistics * shrinkwrap::GetSyncStatTemplate | ( | ) |
Definition at line 648 of file fs_traversal.cc.
Referenced by SyncInit().
bool shrinkwrap::handle_dir | ( | struct fs_traversal * | src, |
struct cvmfs_attr * | src_st, | ||
struct fs_traversal * | dest, | ||
struct cvmfs_attr * | dest_st, | ||
const char * | entry | ||
) |
Definition at line 387 of file fs_traversal.cc.
Referenced by Sync().
bool shrinkwrap::handle_file | ( | struct fs_traversal * | src, |
struct cvmfs_attr * | src_st, | ||
struct fs_traversal * | dest, | ||
struct cvmfs_attr * | dest_st, | ||
const char * | entry, | ||
perf::Statistics * | pstats | ||
) |
Definition at line 338 of file fs_traversal.cc.
Referenced by Sync().
void shrinkwrap::list_src_dir | ( | struct fs_traversal * | src, |
const char * | dir, | ||
char *** | buf, | ||
size_t * | len | ||
) |
Definition at line 324 of file fs_traversal.cc.
Referenced by Sync().
|
static |
Definition at line 613 of file fs_traversal.cc.
Referenced by swissknife::CommandPull::Main(), and SyncInit().
int shrinkwrap::robust_strcmp | ( | const char * | src, |
const char * | dest | ||
) |
Definition at line 420 of file fs_traversal.cc.
Referenced by Sync().
bool shrinkwrap::Sync | ( | const char * | dir, |
struct fs_traversal * | src, | ||
struct fs_traversal * | dest, | ||
bool | recursive, | ||
perf::Statistics * | pstats | ||
) |
bool shrinkwrap::SyncFull | ( | struct fs_traversal * | src, |
struct fs_traversal * | dest, | ||
perf::Statistics * | pstats, | ||
uint64_t | last_print_time | ||
) |
Definition at line 570 of file fs_traversal.cc.
Referenced by SyncInit().
int shrinkwrap::SyncInit | ( | struct fs_traversal * | src, |
struct fs_traversal * | dest, | ||
const char * | base, | ||
const char * | spec, | ||
uint64_t | parallel, | ||
uint64_t | stat_period | ||
) |
Definition at line 673 of file fs_traversal.cc.
Referenced by main().
bool shrinkwrap::updateStat | ( | struct fs_traversal * | fs, |
const char * | entry, | ||
struct cvmfs_attr ** | st, | ||
bool | get_hash | ||
) |
Definition at line 255 of file fs_traversal.cc.
Referenced by getNext().