/src/usr.bin/vndcompress/ |
offtab.c | 207 offtab_init(struct offtab *offtab, uint32_t n_offsets, uint32_t window_size, 212 assert(0 < n_offsets); 217 offtab->ot_n_offsets = n_offsets; 218 if ((window_size == 0) || (n_offsets < window_size)) 219 offtab->ot_window_size = n_offsets; 419 * Guarantee that the disk reflects block offsets [0, n_offsets). If 431 offtab_checkpoint(struct offtab *offtab, uint32_t n_offsets, int flags) 435 assert(n_offsets <= offtab->ot_n_offsets); 442 offtab_maybe_write_window(offtab, 0, n_offsets); 446 const off_t sync_bytes = ((off_t)n_offsets * [all...] |
vnduncompress.c | 114 const uint32_t n_offsets = (n_blocks + 1); local in function:vnduncompress 118 if (ISSET(O->flags, FLAG_w) && (O->window_size < n_offsets)) { 138 offtab_init(&offtab, n_offsets, window_size, cloop2_fd, 162 ((uint64_t)n_offsets * sizeof(uint64_t)));
|
vndcompress.c | 72 uint32_t n_offsets; /* n_blocks + 1 */ member in struct:compress_state 204 assert((S->blkno + 1) < S->n_offsets); 217 assert((S->blkno + 1) == S->n_offsets); 491 S->n_offsets = (S->n_blocks + 1); 495 offtab_init(&S->offtab, S->n_offsets, window_size, S->cloop2_fd, 551 ((uint64_t)S->n_offsets * sizeof(uint64_t))); 620 ((uint64_t)S->n_offsets * sizeof(uint64_t)); 844 assert(S->blkno < S->n_offsets); 845 const uint32_t n_offsets = (S->blkno + 1); local in function:compress_checkpoint 846 assert(n_offsets <= S->n_offsets) [all...] |