Lines Matching refs:new_offset
2358 int new_offset; in shrinkfile() local
2395 if ((new_offset = file_size(fd)) == -1) { in shrinkfile()
2400 if (new_offset < min_lseek) in shrinkfile()
2401 new_offset = min_lseek; in shrinkfile()
2403 new_offset = in shrinkfile()
2404 random_range(min_lseek, new_offset, 1, in shrinkfile()
2407 new_offset = in shrinkfile()
2412 if ((offset = lseek(fd, new_offset, SEEK_SET)) == -1) { in shrinkfile()
2416 new_offset, strerror(errno)); in shrinkfile()
2429 new_offset = cur_offset - trunc_incr; in shrinkfile()
2431 if (new_offset < 0) in shrinkfile()
2432 new_offset = 0; in shrinkfile()
2435 if (lseek(fd, new_offset, SEEK_SET) == -1) { in shrinkfile()
2439 new_offset, strerror(errno)); in shrinkfile()
2445 Progname, Pid, __FILE__, __LINE__, new_offset, in shrinkfile()
2453 ret = ftruncate(fd, new_offset); in shrinkfile()
2457 Progname, Pid, __FILE__, __LINE__, new_offset, trunc_incr); in shrinkfile()
2479 Progname, Pid, __FILE__, __LINE__, cur_offset - new_offset, in shrinkfile()
2480 new_offset); in shrinkfile()
2483 bytes_consumed -= (cur_offset - new_offset); in shrinkfile()