Lines Matching refs:storedSkips
30 * @return : storedSkips,
36 unsigned storedSkips)
55 if (storedSkips > 1 GB) {
58 storedSkips -= 1 GB;
71 storedSkips += (unsigned)(nb0T * sizeof(size_t));
76 if (LONG_SEEK(file, storedSkips, SEEK_CUR) != 0)
78 storedSkips = 0;
95 storedSkips += (unsigned) (restPtr - restStart);
99 if (LONG_SEEK(file, storedSkips, SEEK_CUR) != 0)
104 storedSkips = 0;
107 return storedSkips;
111 AIO_fwriteSparseEnd(const FIO_prefs_t* const prefs, FILE* file, unsigned storedSkips)
113 if (prefs->testMode) assert(storedSkips == 0);
114 if (storedSkips>0) {
115 assert(prefs->sparseFileSupport > 0); /* storedSkips>0 implies sparse support is enabled */
117 if (LONG_SEEK(file, storedSkips-1, SEEK_CUR) != 0)
335 AIO_fwriteSparseEnd(ctx->base.prefs, ctx->base.file, ctx->storedSkips);
336 ctx->storedSkips = 0;
345 assert(ctx->storedSkips == 0);
376 ctx->storedSkips = AIO_fwriteSparse(job->file, job->buffer, job->usedBufferSize, ctx->base.prefs, ctx->storedSkips);
386 ctx->storedSkips = 0;
397 assert(ctx->storedSkips==0);