![]() |
CernVM-FS
2.12.0
|
#include <sys/stat.h>
#include <sys/types.h>
#include <map>
#include <string>
#include "statistics.h"
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 |
#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().
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().
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().
std::string BuildPath | ( | struct fs_traversal_context * | ctx, |
const char * | dir | ||
) |
UTIL FUNCTIONS
Definition at line 61 of file helpers.cc.
Referenced by InitializeWarningFile(), posix_cleanup_path(), posix_do_link(), posix_do_mkdir(), posix_do_rmdir(), posix_do_symlink(), posix_do_unlink(), posix_get_stat(), posix_initialize(), posix_is_hash_consistent(), posix_list_dir(), and posix_set_meta().
void FinalizeFsOperations | ( | struct fs_traversal_context * | ctx | ) |
Definition at line 45 of file helpers.cc.
Referenced by posix_finalize().
void InitialFsOperations | ( | struct fs_traversal_context * | ctx | ) |
INITIALIZATION FUNCTIONS
Definition at line 39 of file helpers.cc.
Referenced by posix_initialize().
void InitializeWarningFile | ( | struct fs_traversal_context * | ctx | ) |
Definition at line 49 of file helpers.cc.
Referenced by InitialFsOperations().
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().
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().