CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
quota_posix.cc File Reference
#include "cvmfs_config.h"
#include "quota_posix.h"
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <pthread.h>
#include <signal.h>
#include <stdint.h>
#include <sys/dir.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <sys/statvfs.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <map>
#include <set>
#include <string>
#include <vector>
#include "duplex_sqlite3.h"
#include "hash.h"
#include "logging.h"
#include "monitor.h"
#include "platform.h"
#include "smalloc.h"
#include "statistics.h"
#include "util/exception.h"
#include "util/pointer.h"
#include "util/posix.h"
#include "util/string.h"
#include "util_concurrency.h"
Include dependency graph for quota_posix.cc:

Go to the source code of this file.

Macros

#define __STDC_LIMIT_MACROS
 
#define __STDC_FORMAT_MACROS
 

Macro Definition Documentation

#define __STDC_FORMAT_MACROS

Definition at line 16 of file quota_posix.cc.

#define __STDC_LIMIT_MACROS

This file is part of the CernVM File System.

This module implements a "managed local cache". This way, we are able to track access times of files in the cache and remove files based on least recently used strategy.

We setup another SQLite catalog, a "cache catalog", that helps us in the bookkeeping of files, file sizes and access times.

We might choose to not manage the local cache. This is indicated by limit == 0 and everything succeeds in that case.

Definition at line 15 of file quota_posix.cc.