20 result = open(path.c_str(), O_RDONLY);
56 "WARNING: trying to close fd that "
57 " is not in refcount tables");
75 "WARNING: trying to dup fd that "
76 " is not in refcount tables");
111 reinterpret_cast<pthread_mutex_t*
>(smalloc(
sizeof(pthread_mutex_t)));
126 reinterpret_cast<pthread_mutex_t*
>(smalloc(
sizeof(pthread_mutex_t)));
SmallHashDynamic< int, FdRefcountInfo > * GetRefcountMapPtr()
pthread_mutex_t * lock_cache_refcount_
assert((mem||(size==0))&&"Out Of Memory")
static uint32_t hasher_int(const int &key)
static uint32_t hasher_any(const ComparableHash &key)
int Open(const shash::Any id, const std::string &path)
SmallHashDynamic< int, FdRefcountInfo > map_refcount_
SmallHashDynamic< shash::Any, int > map_fd_
void Insert(const Key &key, const Value &value)
bool Erase(const Key &key)
SmallHashDynamic< shash::Any, int > * GetFdMapPtr()
bool Lookup(const Key &key, Value *value) const
void Init(uint32_t expected_size, Key empty, uint32_t(*hasher)(const Key &key))
void AssignFrom(FdRefcountMgr *other)
shash::Any id
refcount for the times the fd was opened in the cache
CVMFS_EXPORT void LogCvmfs(const LogSource source, const int mask, const char *format,...)