Tor
0.4.7.0-alpha-dev
|
Data Fields | |
char * | directory |
smartlist_t * | contents |
int | max_files |
int | usage_known |
uint64_t | usage |
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.
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().
char* directory |
Directory holding the files for this storagedir.
Definition at line 51 of file storagedir.c.
Referenced by storage_dir_clean_tmpfiles(), storage_dir_free_(), storage_dir_get_usage(), storage_dir_map(), storage_dir_read(), storage_dir_remove_file(), and storage_dir_save_chunks_to_file().
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().
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().
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().