CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
helpers.h File Reference
#include <sys/stat.h>
#include <sys/types.h>
#include <map>
#include <string>
#include "statistics.h"
Include dependency graph for helpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fs_traversal_posix_context
 

Macros

#define WARNING_FILE_NAME   "DO_NOT_MODIFY_THIS_IS_AN_AUTOGENERATED_DIRECTORY"
 
#define POSIX_GARBAGE_DIR   "/.garbage"
 
#define POSIX_GARBAGE_FLAGGED_FILE   "/flagged"
 
#define POSIX_GC_STAT_FILES_REMOVED   "Files removed"
 
#define POSIX_GC_STAT_BYTES_REMOVED   "Bytes removed"
 

Functions

void InitialFsOperations (struct fs_traversal_context *ctx)
 
void FinalizeFsOperations (struct fs_traversal_context *ctx)
 
void InitializeWarningFile (struct fs_traversal_context *ctx)
 
std::string BuildPath (struct fs_traversal_context *ctx, const char *dir)
 
std::string BuildHiddenPath (struct fs_traversal_context *ctx, const char *ident)
 
int PosixSetMeta (const char *path, const struct cvmfs_attr *stat_info, bool set_permissions=true)
 
bool BackupMtimes (std::string path, struct utimbuf *mtimes)
 

Variables

const unsigned kDirLevels = 2
 
const unsigned kDigitsPerDirLevel = 2
 

Macro Definition Documentation

#define POSIX_GARBAGE_DIR   "/.garbage"

Definition at line 16 of file helpers.h.

Referenced by FinalizeGarbageCollection(), and InitializeGarbageCollection().

#define POSIX_GARBAGE_FLAGGED_FILE   "/flagged"

Definition at line 17 of file helpers.h.

Referenced by FinalizeGarbageCollection(), and InitializeGarbageCollection().

#define POSIX_GC_STAT_BYTES_REMOVED   "Bytes removed"

Definition at line 19 of file helpers.h.

Referenced by PosixGcMainWorker(), and RunGarbageCollection().

#define POSIX_GC_STAT_FILES_REMOVED   "Files removed"

Definition at line 18 of file helpers.h.

Referenced by PosixGcMainWorker(), and RunGarbageCollection().

#define WARNING_FILE_NAME   "DO_NOT_MODIFY_THIS_IS_AN_AUTOGENERATED_DIRECTORY"

This file is part of the CernVM File System.

Definition at line 15 of file helpers.h.

Referenced by InitializeWarningFile(), and posix_list_dir().

Function Documentation

bool BackupMtimes ( std::string  path,
struct utimbuf *  mtimes 
)

Definition at line 116 of file helpers.cc.

Referenced by posix_do_fopen(), posix_do_link(), posix_do_mkdir(), posix_do_rmdir(), posix_do_symlink(), and posix_do_unlink().

Here is the caller graph for this function:

std::string BuildHiddenPath ( struct fs_traversal_context ctx,
const char *  ident 
)

Definition at line 72 of file helpers.cc.

Referenced by posix_do_link(), posix_get_handle(), posix_has_file(), posix_is_hash_consistent(), and posix_touch().

Here is the caller graph for this function:

std::string BuildPath ( struct fs_traversal_context ctx,
const char *  dir 
)
void FinalizeFsOperations ( struct fs_traversal_context ctx)

Definition at line 45 of file helpers.cc.

Referenced by posix_finalize().

Here is the call graph for this function:

Here is the caller graph for this function:

void InitialFsOperations ( struct fs_traversal_context ctx)

INTIALIZATION FUNCTIONS

Definition at line 39 of file helpers.cc.

Referenced by posix_initialize().

Here is the call graph for this function:

Here is the caller graph for this function:

void InitializeWarningFile ( struct fs_traversal_context ctx)

Definition at line 49 of file helpers.cc.

Referenced by InitialFsOperations().

Here is the call graph for this function:

Here is the caller graph for this function:

int PosixSetMeta ( const char *  path,
const struct cvmfs_attr stat_info,
bool  set_permissions = true 
)

Definition at line 79 of file helpers.cc.

Referenced by posix_do_mkdir(), posix_do_symlink(), posix_set_meta(), and posix_touch().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const unsigned kDigitsPerDirLevel = 2

Definition at line 22 of file helpers.h.

Referenced by posix_get_identifier(), PosixCheckDirStructure(), and PosixGcMainWorker().

const unsigned kDirLevels = 2

Definition at line 21 of file helpers.h.

Referenced by posix_get_identifier(), PosixCheckDirStructure(), and PosixGcMainWorker().