Lines Matching defs:hole
144 * Step through a file discovering and recording pairs of data and hole
145 * offsets. Returns a linked list of data/hole offset pairs of a file.
156 off_t data, hole;
164 hole = 0;
168 while (hole < filesz) {
169 if ((data = lseek(fd, hole, SEEK_DATA)) == -1) {
178 if ((hole = lseek(fd, data, SEEK_HOLE)) == -1) {
180 hole = filesz;
182 if (data == 0 && hole == filesz) {
189 /* set data and hole */
191 hl->hl_hole = hole;
244 * Put data/hole offset pair into string in the following
246 * <data> <sp> <hole> <sp>
309 * When a hole is detected, non NULL holes_info pointer is returned.
315 * <SP><data off><SP><hole off><SP><data off><SP><hole off> ...
362 * <SP><data off><SP><hole off><SP><data off><SP><hole off> ...
403 /* create hole list */
421 /* read the string token for hole */
433 /* data and hole can be equal */
438 /* The last hole offset should match original file size */