Lines Matching refs:new_offset
2345 int new_offset; in shrinkfile() local
2382 if ((new_offset = file_size(fd)) == -1) { in shrinkfile()
2387 if (new_offset < min_lseek) in shrinkfile()
2388 new_offset = min_lseek; in shrinkfile()
2390 new_offset = in shrinkfile()
2391 random_range(min_lseek, new_offset, 1, in shrinkfile()
2394 new_offset = in shrinkfile()
2399 if ((offset = lseek(fd, new_offset, SEEK_SET)) == -1) { in shrinkfile()
2403 new_offset, strerror(errno)); in shrinkfile()
2416 new_offset = cur_offset - trunc_incr; in shrinkfile()
2418 if (new_offset < 0) in shrinkfile()
2419 new_offset = 0; in shrinkfile()
2422 if (lseek(fd, new_offset, SEEK_SET) == -1) { in shrinkfile()
2426 new_offset, strerror(errno)); in shrinkfile()
2432 Progname, Pid, __FILE__, __LINE__, new_offset, in shrinkfile()
2440 ret = ftruncate(fd, new_offset); in shrinkfile()
2444 Progname, Pid, __FILE__, __LINE__, new_offset, trunc_incr); in shrinkfile()
2466 Progname, Pid, __FILE__, __LINE__, cur_offset - new_offset, in shrinkfile()
2467 new_offset); in shrinkfile()
2470 bytes_consumed -= (cur_offset - new_offset); in shrinkfile()