Validate peer state response content against the hash. (#190)

This commit is contained in:
Chalith Desaman
2020-12-10 17:32:18 +05:30
committed by GitHub
parent b86efb2d9b
commit b77a3fc924
3 changed files with 162 additions and 45 deletions

View File

@@ -18,6 +18,9 @@ namespace hpfs
}
};
// File block size;
constexpr size_t BLOCK_SIZE = 4194304; // 4MB
int start_merge_process(pid_t &hpfs_pid);
int start_ro_rw_process(pid_t &hpfs_pid, std::string &mount_dir, const bool readonly,
const bool hash_map_enabled, const bool auto_start_session, const uint16_t timeout = 4000);