Tor 0.5.0.0-alpha-dev
Loading...
Searching...
No Matches
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(), storage_dir_remove_file(), storage_dir_rescan(), storage_dir_save_chunks_to_file(), and storage_dir_shrink().

◆ 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 find_unused_fname(), storage_dir_get_max_files(), storage_dir_new(), storage_dir_register_with_sandbox(), 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(), storage_dir_rescan(), storage_dir_save_chunks_to_file(), and storage_dir_shrink().

◆ usage_known

int usage_known

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