Lines Matching refs:off
179 void *volume_id_get_buffer(struct volume_id *id, uint64_t off, size_t len) in volume_id_get_buffer() argument
186 (unsigned long long) off, (unsigned long long) off, len); in volume_id_get_buffer()
189 if (off + len <= SB_BUFFER_SIZE in volume_id_get_buffer()
195 small_off = off; in volume_id_get_buffer()
199 len += off; in volume_id_get_buffer()
205 off = 0; in volume_id_get_buffer()
216 if ((off >= id->seekbuf_off) in volume_id_get_buffer()
217 && ((off + len) <= (id->seekbuf_off + id->seekbuf_len)) in volume_id_get_buffer()
219 small_off = off - id->seekbuf_off; /* can't overflow */ in volume_id_get_buffer()
223 id->seekbuf_off = off; in volume_id_get_buffer()
229 (unsigned long long) off, len); in volume_id_get_buffer()
231 if (lseek(id->fd, off, SEEK_SET) != off) { in volume_id_get_buffer()
232 dbg("seek(0x%llx) failed", (unsigned long long) off); in volume_id_get_buffer()
246 if (off < 64*1024) in volume_id_get_buffer()