Lines Matching defs:filesize
79 static uint64_t get_random_offset(randdata_t * rd, uint64_t filesize,
83 return getllrandom(rd, filesize);
85 filesize /= 4096;
86 return getllrandom(rd, filesize) * 4096;
95 uint64_t filesize;
110 filesize = ffsb_get_filesize(curfile->name);
112 assert(filesize >= read_size);
116 uint64_t range = filesize - read_size;
136 if (minfilesize > filesize) {
141 read_skipsize, read_blocksize, filesize);
169 uint64_t range = filesize - read_blocksize;
197 uint64_t filesize;
208 filesize = ffsb_get_filesize(curfile->name);
209 iterations = readfile_helper(fd, filesize, read_blocksize, buf, ft, fs);
214 ft_incr_op(ft, opnum, iterations, filesize);
215 ft_add_readbytes(ft, filesize);
228 uint64_t filesize;
240 filesize = ffsb_get_filesize(curfile->name);
242 assert(filesize >= write_size);
246 uint64_t range = filesize - write_size;
257 uint64_t range = filesize - write_blocksize;
278 *filesize_ret = filesize;
285 uint64_t filesize;
287 iterations = ffsb_writefile_core(ft, fs, opnum, &filesize, 0);
288 ft_incr_op(ft, opnum, iterations, filesize);
289 ft_add_writebytes(ft, filesize);
295 uint64_t filesize;
297 iterations = ffsb_writefile_core(ft, fs, opnum, &filesize, 1);
298 ft_incr_op(ft, opnum, iterations, filesize);
299 ft_add_writebytes(ft, filesize);
311 uint64_t filesize;
322 filesize = ffsb_get_filesize(curfile->name);
323 iterations = writefile_helper(fd, filesize, write_blocksize, buf,
334 *filesize_ret = filesize;
344 uint64_t filesize;
346 iterations = ffsb_writeall_core(ft, fs, opnum, &filesize, 0);
347 ft_incr_op(ft, opnum, iterations, filesize);
348 ft_add_writebytes(ft, filesize);
354 uint64_t filesize;
356 iterations = ffsb_writeall_core(ft, fs, opnum, &filesize, 1);
357 ft_incr_op(ft, opnum, iterations, filesize);
358 ft_add_writebytes(ft, filesize);
400 uint64_t filesize;
402 iterations = ffsb_appendfile_core(ft, fs, opnum, &filesize, 0);
403 ft_incr_op(ft, opnum, iterations, filesize);
404 ft_add_writebytes(ft, filesize);
410 uint64_t filesize;
412 iterations = ffsb_appendfile_core(ft, fs, opnum, &filesize, 1);
413 ft_incr_op(ft, opnum, iterations, filesize);
414 ft_add_writebytes(ft, filesize);
469 uint64_t filesize;
471 iterations = ffsb_createfile_core(ft, fs, opnum, &filesize, 0);
472 ft_incr_op(ft, opnum, iterations, filesize);
473 ft_add_writebytes(ft, filesize);
479 uint64_t filesize;
481 iterations = ffsb_createfile_core(ft, fs, opnum, &filesize, 1);
482 ft_incr_op(ft, opnum, iterations, filesize);
483 ft_add_writebytes(ft, filesize);