aboutsummaryrefslogtreecommitdiff
path: root/src/util/system.h
diff options
context:
space:
mode:
authorJim Posen <jim.posen@gmail.com>2018-09-01 15:18:02 -0700
committerJim Posen <jim.posen@gmail.com>2019-02-22 17:38:45 -0800
commit62e7addb632cad77cbd5fbccbaee51c7b32505d0 (patch)
treed1251329ff8b5fc6dd6c85a0fdee883d66736f0e /src/util/system.h
parentf3f9c1de19e6d254e0c3a26ce7a3d8cd57fb7641 (diff)
downloadbitcoin-62e7addb632cad77cbd5fbccbaee51c7b32505d0.tar.xz
util: Move CheckDiskSpace to util.
Diffstat (limited to 'src/util/system.h')
-rw-r--r--src/util/system.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/system.h b/src/util/system.h
index 69ae11d1ed..2a2ee9bc1d 100644
--- a/src/util/system.h
+++ b/src/util/system.h
@@ -72,6 +72,7 @@ bool RenameOver(fs::path src, fs::path dest);
bool LockDirectory(const fs::path& directory, const std::string lockfile_name, bool probe_only=false);
void UnlockDirectory(const fs::path& directory, const std::string& lockfile_name);
bool DirIsWritable(const fs::path& directory);
+bool CheckDiskSpace(const fs::path& dir, uint64_t nAdditionalBytes = 0);
/** Release all directory locks. This is used for unit testing only, at runtime
* the global destructor will take care of the locks.