Lines Matching refs:fsize
47 uint64_t fsize; /**< Current file size */ member
139 if (s->off >= impl->fsize) { in _exfile_initmmap_slot_lw()
142 nlen = MIN(s->maxlen, impl->fsize - s->off); in _exfile_initmmap_slot_lw()
198 assert(!(impl->fsize & (impl->psize - 1))); in _exfile_initmmap_lw()
215 uint64_t old_size = impl->fsize; in _exfile_truncate_lw()
235 impl->fsize = (uint64_t) size; in _exfile_truncate_lw()
249 impl->fsize = (uint64_t) size; in _exfile_truncate_lw()
259 impl->fsize = old_size; in _exfile_truncate_lw()
267 if (impl->fsize >= sz) { in _exfile_ensure_size_lw()
270 off_t nsz = impl->rspolicy(sz, impl->fsize, f, &impl->rspolicy_ctx); in _exfile_ensure_size_lw()
317 if (end > impl->fsize) { in _exfile_write()
322 if (end > impl->fsize) { in _exfile_write()
379 if (end > impl->fsize) { in _exfile_read()
380 siz = (size_t) (impl->fsize - off); in _exfile_read()
421 state->fsize = f->impl->fsize; in _exfile_state()
502 impl->rspolicy(-1, impl->fsize, f, &impl->rspolicy_ctx); in _exfile_close()
513 if (f->impl->fsize >= sz) { in _exfile_ensure_size()
896 impl->fsize = fstat.size; in iwfs_exfile_open()
900 if (impl->fsize < opts->initial_size) { in iwfs_exfile_open()
902 } else if (impl->fsize & (impl->psize - 1)) { // not a page aligned in iwfs_exfile_open()
903 rc = _exfile_truncate_lw(f, impl->fsize); in iwfs_exfile_open()