CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
data_dir_mgmt.cc File Reference
#include "data_dir_mgmt.h"
#include <errno.h>
#include <stdio.h>
#include "helpers.h"
#include "shrinkwrap/fs_traversal_interface.h"
#include "util/posix.h"
Include dependency graph for data_dir_mgmt.cc:

Go to the source code of this file.

Functions

void PosixCheckDirStructure (std::string cur_path, mode_t mode, unsigned depth=1)
 
void InitializeDataDirectory (struct fs_traversal_context *ctx)
 

Function Documentation

void InitializeDataDirectory ( struct fs_traversal_context ctx)

This file is part of the CernVM File System. The functions in this file handle the management of the .data directory structure in the POSIX File System Traversal interface.

The .data directory structure contains (meta)content-adressable links to all inodes of the exported file system. This is used for deduplication. Method which initializes the .data directory with all subdirectories. Depending on kDirLevels and kDigitsPerDirLevel (defined in helpers.h) this process might be very slow.

Definition at line 61 of file data_dir_mgmt.cc.

Referenced by InitialFsOperations().

Here is the call graph for this function:

Here is the caller graph for this function:

void PosixCheckDirStructure ( std::string  cur_path,
mode_t  mode,
unsigned  depth = 1 
)

This file is part of the CernVM File System. Method which recursively creates the .data subdirectories

Definition at line 16 of file data_dir_mgmt.cc.

Referenced by InitializeDataDirectory().

Here is the call graph for this function:

Here is the caller graph for this function: