aboutsummaryrefslogtreecommitdiff
path: root/src/common/storagedir.c
AgeCommit message (Collapse)Author
2018-06-20Run rectify_include_paths.pyNick Mathewson
2018-06-20Update copyrights to 2018.Nick Mathewson
2017-12-08Merge branch 'macro_free_v2_squashed'Nick Mathewson
2017-12-08Convert the rest of src/common's headers to use FREE_AND_NULLNick Mathewson
2017-11-20In storagedir, take more care with errno on empty or mislabeled fileNick Mathewson
Required for 24099 fix -- we won't be able to act based on errno unless we can trust it.
2017-06-28Log real error message when unable to remove a storagedir fileNick Mathewson
Attempts to help diagnose 22752.
2017-06-26Fix a coverity warning about a no-op assert with-64 bit size_tNick Mathewson
This is CID 1403400
2017-05-28If we do underflow the know usage of a storage, recalculate itteor
Fixes bug #22424 on 0.3.1.1-alpha.
2017-05-28Refactor storage usage reductions into a static functionteor
No behaviour change. Part of #22424.
2017-05-28Don't underflow usage when it is unknown and a file is removedteor
Part of #22424.
2017-05-28Always check for usage underflow when removing a file in storage.cteor
Part of #22424.
2017-05-28Fix comment typos in storage.cteor
2017-04-27Functionality to ensure there is space to add files to cache.Nick Mathewson
2017-04-27Fix use-after-free bug in storage_dir sandbox code.Nick Mathewson
2017-04-06Add some "labeled storagedir" abstractions.Nick Mathewson
These add a tiny bit of structure on top of the regular storagedir abstractions in order to store key-value lists at the head of each document.
2017-03-27Check and cast st_size to size_t in storagedir codeNick Mathewson
This prevents an i386 compilation warning and fixes bug 21828. Bug not in any released Tor.
2017-03-16Define a "storagedir" abstraction to hold numerous similar filesNick Mathewson
We could use one of these for holding "junk" descriptors and unparseable things -- but we'll _need_ it for having cached consensuses and diffs between them.