CernVM-FS
2.12.0
|
#include "statistics.h"
Go to the source code of this file.
Classes | |
struct | posix_gc_thread |
Functions | |
void | InitializeGarbageCollection (struct fs_traversal_context *ctx) |
void | FinalizeGarbageCollection (struct fs_traversal_context *ctx) |
int | RunGarbageCollection (struct fs_traversal_context *ctx) |
void FinalizeGarbageCollection | ( | struct fs_traversal_context * | ctx | ) |
Finalizes the garbage collection Stores the content of the garbage collection hash map in the file at [data directory] + POSIX_GARBAGE_DIR + POSIX_GARBAGE_FLAGGED_FILE
Definition at line 61 of file garbage_collector.cc.
Referenced by FinalizeFsOperations().
void InitializeGarbageCollection | ( | struct fs_traversal_context * | ctx | ) |
This file is part of the CernVM File System. Initializes garbage collection by setting up the corresponding hash map in the fs_traversal_posix_context The initialization uses the data stored in the file at [data directory] + POSIX_GARBAGE_DIR + POSIX_GARBAGE_FLAGGED_FILE
This file contains a fixed length concatenation of inodes (type ino_t) which should be checked and deleted upon garbage collection
Definition at line 31 of file garbage_collector.cc.
Referenced by InitialFsOperations().
int RunGarbageCollection | ( | struct fs_traversal_context * | ctx | ) |
Method which runs the garbage collection. Will start posix_ctx->num_threads in parallel for the task. For posix_ctx->num_threads <= 1 there is a fallback to a sequential version.
Definition at line 162 of file garbage_collector.cc.
Referenced by posix_garbage_collector().