Lines Matching refs:map_size
227 tdb_len_t map_size; /* how much space has been mapped */ member
840 if (len <= tdb->map_size) in tdb_oob()
847 (int)len, (int)tdb->map_size)); in tdb_oob()
869 tdb->map_size = st.st_size; in tdb_oob()
930 (int)tdb->map_size)); in tdb_read()
991 tdb->map_ptr = mmap(NULL, tdb->map_size, in tdb_mmap()
1003 tdb->map_size, strerror(errno))); in tdb_mmap()
1005 tdb->real_map_size = tdb->map_size; in tdb_mmap()
1066 tdb->methods->tdb_oob(tdb, tdb->map_size + 1, 1); in tdb_expand()
1070 size = TDB_ALIGN(tdb->map_size + size*10, tdb->page_size) - tdb->map_size; in tdb_expand()
1083 if (tdb->methods->tdb_expand_file(tdb, tdb->map_size, size) != 0) in tdb_expand()
1087 tdb->map_size += size; in tdb_expand()
1091 tdb->map_size); in tdb_expand()
1093 tdb->map_size -= size; in tdb_expand()
1113 offset = tdb->map_size - size; in tdb_expand()
1542 if (len <= tdb->map_size) { in transaction_oob()
1661 tdb->methods->tdb_oob(tdb, tdb->map_size + 1, 1); in tdb_transaction_start()
1662 tdb->transaction->old_map_size = tdb->map_size; in tdb_transaction_start()
1706 tdb->map_size = tdb->transaction->old_map_size; in tdb_transaction_cancel()
1842 *recovery_offset = tdb->map_size; in tdb_recovery_allocate()
1846 (tdb->map_size - tdb->transaction->old_map_size) + in tdb_recovery_allocate()
1853 methods->tdb_oob(tdb, tdb->map_size + 1, 1); in tdb_recovery_allocate()
1857 tdb->transaction->old_map_size = tdb->map_size; in tdb_recovery_allocate()
2052 if (tdb->map_size != tdb->transaction->old_map_size) { in tdb_transaction_commit()
2054 tdb->map_size - in tdb_transaction_commit()
2062 tdb->map_size = tdb->transaction->old_map_size; in tdb_transaction_commit()
2063 methods->tdb_oob(tdb, tdb->map_size + 1, 1); in tdb_transaction_commit()
2092 if (transaction_sync(tdb, 0, tdb->map_size) == -1) { in tdb_transaction_commit()
2213 if (transaction_sync(tdb, 0, tdb->map_size) == -1) { in tdb_transaction_recover()
2243 tdb->map_size = recovery_eof; in tdb_transaction_recover()
2341 if (right + sizeof(*rec) <= tdb->map_size) { in tdb_free()
3691 return tdb->map_size; in tdb_map_size()
3743 tdb->map_size = size; in tdb_new_database()
3942 tdb->map_size = st.st_size; in tdb_open_ex()