CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
garbage_collector.h File Reference
#include "statistics.h"
Include dependency graph for garbage_collector.h:
This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

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

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function: