CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
shrinkwrap Namespace Reference

Namespaces

 anonymous_namespace{fs_traversal.cc}
 

Classes

struct  MainWorkerContext
 
struct  MainWorkerSpecificContext
 

Functions

struct fs_traversalFindInterface (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::StatisticsGetSyncStatTemplate ()
 
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)
 

Function Documentation

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

struct fs_traversal * shrinkwrap::FindInterface ( const char *  type)

Definition at line 108 of file fs_traversal.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int shrinkwrap::GarbageCollect ( struct fs_traversal fs)

Definition at line 766 of file fs_traversal.cc.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

char* shrinkwrap::get_full_path ( const char *  dir,
const char *  entry 
)

Definition at line 248 of file fs_traversal.cc.

Referenced by getNext().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

perf::Statistics * shrinkwrap::GetSyncStatTemplate ( )

Definition at line 648 of file fs_traversal.cc.

Referenced by SyncInit().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static void* shrinkwrap::MainWorker ( void *  data)
static

Definition at line 613 of file fs_traversal.cc.

Referenced by swissknife::CommandPull::Main(), and SyncInit().

Here is the call graph for this function:

Here is the caller graph for this function:

int shrinkwrap::robust_strcmp ( const char *  src,
const char *  dest 
)

Definition at line 420 of file fs_traversal.cc.

Referenced by Sync().

Here is the caller graph for this function:

bool shrinkwrap::Sync ( const char *  dir,
struct fs_traversal src,
struct fs_traversal dest,
bool  recursive,
perf::Statistics pstats 
)

Definition at line 430 of file fs_traversal.cc.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function: