1
0
mirror of https://github.com/facebook/zstd.git synced 2025-08-01 09:47:01 +03:00

ability to disable mmap + struct to manage FIO dictionary

This commit is contained in:
Danielle Rozenblit
2023-03-08 08:06:10 -08:00
parent 2d8afd9ce1
commit 96e55c14f2
4 changed files with 48 additions and 45 deletions

View File

@ -69,7 +69,15 @@ typedef struct FIO_prefs_s {
int contentSize;
int allowBlockDevices;
int passThrough;
int mmapDict;
ZSTD_paramSwitch_e mmapDict;
} FIO_prefs_t;
typedef enum {FIO_mallocDict, FIO_mmapDict} FIO_dictBufferType_t;
typedef struct {
void* dictBuffer;
size_t dictBufferSize;
FIO_dictBufferType_t dictBufferType;
} FIO_Dict_t;
#endif /* FILEIO_TYPES_HEADER */