Lines Matching defs:hole
745 int write_block(int file_fd, char *buffer, int size, long long hole, int sparse)
747 off_t off = hole;
749 if(hole) {
765 int blocks = (hole + block_size -1) / block_size;
767 for(i = 0; i < blocks; i++, hole -= avail_bytes) {
768 avail_bytes = hole > block_size ? block_size :
769 hole;
1640 long long hole = 0;
1657 hole += block->size;
1671 block->offset, block->size, hole, file->sparse);
1679 hole = 0;
1684 if(hole && failed == FALSE) {
1686 * corner case for hole extending to end of file
1689 lseek(file_fd, hole, SEEK_CUR) == -1) {
1696 hole --;
1697 if(write_block(file_fd, "\0", 1, hole,