Tor 0.4.9.0-alpha-dev
Data Fields
storage_dir_t Struct Reference

Data Fields

char * directory
 
smartlist_tcontents
 
int max_files
 
int usage_known
 
uint64_t usage
 

Detailed Description

A storage_dir_t represents a directory full of similar cached files. Filenames are decimal integers. Files can be cleaned as needed to limit total disk usage.

Definition at line 49 of file storagedir.c.

Field Documentation

◆ contents

smartlist_t* contents

Either NULL, or a directory listing of the directory (as a smartlist of strings

Definition at line 54 of file storagedir.c.

Referenced by find_unused_fname(), storage_dir_clean_tmpfiles(), storage_dir_free_(), storage_dir_list(), and storage_dir_rescan().

◆ directory

char* directory

◆ max_files

int max_files

The largest number of non-temporary files we'll place in the directory.

Definition at line 57 of file storagedir.c.

Referenced by storage_dir_get_max_files(), and storage_dir_remove_all().

◆ usage

uint64_t usage

The total number of bytes used in this directory

Definition at line 61 of file storagedir.c.

Referenced by storage_dir_get_usage(), and storage_dir_shrink().

◆ usage_known

int usage_known

If true, then 'usage' has been computed.

Definition at line 59 of file storagedir.c.

Referenced by storage_dir_get_usage(), storage_dir_remove_file(), and storage_dir_shrink().


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