Lines Matching refs:fsize
47 uint64_t fsize; /**< Current file size */ member
127 if (s->off >= impl->fsize) { in _exfile_initmmap_slot_lw()
130 nlen = MIN(s->maxlen, impl->fsize - s->off); in _exfile_initmmap_slot_lw()
171 assert(!(impl->fsize & (impl->psize - 1))); in _exfile_initmmap_lw()
188 uint64_t old_size = impl->fsize; in _exfile_truncate_lw()
208 impl->fsize = (uint64_t) size; in _exfile_truncate_lw()
222 impl->fsize = (uint64_t) size; in _exfile_truncate_lw()
232 impl->fsize = old_size; in _exfile_truncate_lw()
240 if (impl->fsize >= sz) { in _exfile_ensure_size_lw()
243 off_t nsz = impl->rspolicy(sz, impl->fsize, f, &impl->rspolicy_ctx); in _exfile_ensure_size_lw()
290 if (end > impl->fsize) { in _exfile_write()
295 if (end > impl->fsize) { in _exfile_write()
352 if (end > impl->fsize) { in _exfile_read()
353 siz = (size_t)(impl->fsize - off); in _exfile_read()
394 state->fsize = f->impl->fsize; in _exfile_state()
475 impl->rspolicy(-1, impl->fsize, f, &impl->rspolicy_ctx); in _exfile_close()
486 if (f->impl->fsize >= sz) { in _exfile_ensure_size()
869 impl->fsize = fstat.size; in iwfs_exfile_open()
873 if (impl->fsize < opts->initial_size) { in iwfs_exfile_open()
875 } else if (impl->fsize & (impl->psize - 1)) { // not a page aligned in iwfs_exfile_open()
876 rc = _exfile_truncate_lw(f, impl->fsize); in iwfs_exfile_open()