Lines Matching refs:offset
96 FlushBlock(uint64_t offset, const void *buf, size_t len)
98 assert(offset % blockSize == 0);
101 pwrite(diskfd, buf, len, offset);
103 pwrite(diskfd, zerobuf, blockSize - len, offset + len);
111 uint64_t offset = lseek(diskfd, 0, SEEK_CUR);
113 FlushBlock(offset, buf, len);
116 return offset;
155 node.direct[i].offset = AppendBlock(tempbuf, len);
162 uint64_t offset = AppendBlock(&node, sizeof(node));
166 id->offset = offset;
227 uint64_t offset = AppendBlock(entries, size);
236 node.direct[0].offset = offset;
241 id->offset = nodeoff;
255 /* Mark the blocks in use up to the current offset */