tor  master
Data Fields
desc_store_t Struct Reference

#include <or.h>

Collaboration diagram for desc_store_t:
Collaboration graph
[legend]

Data Fields

const char * fname_base
 
const char * description
 
tor_mmap_tmmap
 
store_type_t type
 
size_t journal_len
 
size_t store_len
 
size_t bytes_dropped
 

Detailed Description

A 'store' is a set of descriptors saved on disk, with accompanying journal, mmaped as needed, rebuilt as needed.

Field Documentation

◆ bytes_dropped

size_t bytes_dropped

Total bytes dropped since last rebuild: this is space currently used in the cache and the journal that could be freed by a rebuild.

◆ description

const char* description

Human-readable description of what this store contains.

◆ fname_base

const char* fname_base

Filename (within DataDir) for the store. We append .tmp to this filename for a temporary file when rebuilding the store, and .new to this filename for the journal.

◆ journal_len

size_t journal_len

The size of the router log, in bytes.

◆ mmap

tor_mmap_t* mmap

A mmap for the main file in the store.

◆ store_len

size_t store_len

The size of the router store, in bytes.

◆ type

What's stored in this store?


The documentation for this struct was generated from the following file: