Lines Matching refs:chunk
87 static int csize; /* chunk size */
259 int i, count, collide, chunk, whenmisc, xfr;
300 * pick random chunk, read it.
326 chunk = rand() % nchunks;
330 if (lseek64(fd, CHUNK(chunk), 0) < (off64_t) 0) {
333 me, CHUNK(chunk));
338 me, CHUNK(chunk));
341 * If chunk beyond EOF just write on it.
345 //printf("%li %d", CHUNK(chunk), file_max );
346 if (CHUNK(chunk) >= file_max) {
347 bits[chunk / 8] |= (1 << (chunk % 8));
349 } else if ((bits[chunk / 8] & (1 << (chunk % 8))) == 0) {
358 me, CHUNK(chunk), val, count,
377 bits[chunk / 8] |= (1 << (chunk % 8));
389 me, CHUNK(chunk), val, count,
415 me, CHUNK(chunk));
426 me, CHUNK(chunk), xfr);
430 if (CHUNK(chunk) + csize > file_max)
431 file_max = CHUNK(chunk) + csize;
464 int chunk;
477 chunk = rand() % (file_max / csize);
478 file_max = CHUNK(chunk);
495 for (; chunk % 8 != 0; chunk++)
496 bits[chunk / 8] &= ~(1 << (chunk % 8));
497 for (; chunk < nchunks; chunk += 8)
498 bits[chunk / 8] = 0;