Lines Matching refs:prefs
35 const FIO_prefs_t* const prefs,
44 if (prefs->testMode) return 0; /* do not output anything in test mode */
46 if (!prefs->sparseFileSupport) { /* normal write */
111 AIO_fwriteSparseEnd(const FIO_prefs_t* const prefs, FILE* file, unsigned storedSkips)
113 if (prefs->testMode) assert(storedSkips == 0);
115 assert(prefs->sparseFileSupport > 0); /* storedSkips>0 implies sparse support is enabled */
116 (void)prefs; /* assert can be disabled, in which case prefs becomes unused */
164 static void AIO_IOPool_createThreadPool(IOPoolCtx_t* ctx, const FIO_prefs_t* prefs) {
167 if(prefs->asyncIO) {
182 static void AIO_IOPool_init(IOPoolCtx_t* ctx, const FIO_prefs_t* prefs, POOL_function poolFunction, size_t bufferSize) {
184 AIO_IOPool_createThreadPool(ctx, prefs);
185 ctx->prefs = prefs;
272 assert(ctx->file != NULL || ctx->prefs->testMode);
335 AIO_fwriteSparseEnd(ctx->base.prefs, ctx->base.file, ctx->storedSkips);
365 assert(dstFile!=NULL || ctx->base.prefs->testMode!=0);
376 ctx->storedSkips = AIO_fwriteSparse(job->file, job->buffer, job->usedBufferSize, ctx->base.prefs, ctx->storedSkips);
382 WritePoolCtx_t* AIO_WritePool_create(const FIO_prefs_t* prefs, size_t bufferSize) {
385 AIO_IOPool_init(&ctx->base, prefs, AIO_WritePool_executeWriteJob, bufferSize);
547 ReadPoolCtx_t* AIO_ReadPool_create(const FIO_prefs_t* prefs, size_t bufferSize) {
550 AIO_IOPool_init(&ctx->base, prefs, AIO_ReadPool_executeReadJob, bufferSize);