Finalizing the implementation of file registration
Adding the file system check in Linux(can be enabled from the config file) Adding a more options to the config file Writing the README
This commit is contained in:
28
config.h
28
config.h
@@ -1,27 +1,31 @@
|
||||
|
||||
#define FILE_HASHES_TXT "file_hashes.txt"
|
||||
#define HASH_STRLEN 33 // 128-bit hex (32 chars) + null
|
||||
#define MAX_PATHLEN 4096
|
||||
#define READ_BLOCK (KiB(64))
|
||||
|
||||
#define MULTI_THREADED true
|
||||
// Metadata selection
|
||||
#define FILE_TIMES 1 // created and modified time
|
||||
#define FILE_OWNER 1
|
||||
|
||||
#define MULTI_THREADING 1
|
||||
#define READ_BLOCK KiB(64)
|
||||
|
||||
// -------------------- IO Ring Configuration ----------------------
|
||||
#define USE_IORING 1
|
||||
|
||||
#if USE_IORING
|
||||
#define IORING_BUFFER_SIZE (KiB(256))
|
||||
#define IORING_BUFFER_SIZE KiB(256)
|
||||
#define NUM_BUFFERS_PER_THREAD 32
|
||||
#define MAX_ACTIVE_FILES 32
|
||||
#define SUBMIT_TIMEOUT_MS 30000
|
||||
#define MAX_ACTIVE_FILES 16
|
||||
|
||||
#define IORING_DEBUG_PRINTS false
|
||||
#define IORING_DEBUG_STATS false
|
||||
#define SUBMIT_TIMEOUT_MS 10000
|
||||
#define IORING_DEBUG_PRINTS 0
|
||||
#define IORING_DEBUG_STATS 0
|
||||
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
#define USE_REGISTERED_FILES false
|
||||
#define USE_REGISTERED_FILES 1
|
||||
|
||||
#elif defined(__linux__)
|
||||
#define USE_REGISTERED_FILES true
|
||||
#endif
|
||||
#define USE_REGISTERED_FILES 1
|
||||
#define CHECK_FILE_SYSTEM 0
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user