Lines Matching defs:tdb
3 * copies the old data being overwritten into a tdb database
40 #include "tdb.h"
60 TDB_CONTEXT *tdb;
137 TDB_CONTEXT *tdb)
155 /* Write to tdb file in the file system byte order */
161 retval = tdb_store(tdb, tdb_key, tdb_data, TDB_INSERT);
163 retval = EXT2_ET_TDB_SUCCESS + tdb_error(tdb);
172 retval = tdb_store(tdb, tdb_key, tdb_data, TDB_INSERT);
174 retval = EXT2_ET_TDB_SUCCESS + tdb_error(tdb);
182 static errcode_t write_block_size(TDB_CONTEXT *tdb, int block_size)
192 retval = tdb_store(tdb, tdb_key, tdb_data, TDB_INSERT);
194 retval = EXT2_ET_TDB_SUCCESS + tdb_error(tdb);
215 if (data->tdb == NULL) {
231 * Data is stored in tdb database as blocks of tdb_data_size size
240 tdb_transaction_start(data->tdb);
248 if (tdb_exists(data->tdb, tdb_key)) {
267 tdb_transaction_cancel(data->tdb);
282 tdb_transaction_cancel(data->tdb);
303 /* Write the blocksize to tdb file */
304 retval = write_block_size(data->tdb,
307 tdb_transaction_cancel(data->tdb);
313 retval = tdb_store(data->tdb, tdb_key, tdb_data, TDB_INSERT);
319 tdb_transaction_cancel(data->tdb);
328 tdb_transaction_commit(data->tdb);
391 /* setup the tdb file */
392 data->tdb = tdb_open(tdb_file, 0, TDB_CLEAR_IF_FIRST,
394 if (!data->tdb) {
431 retval = write_file_system_identity(channel, data->tdb);
436 if (data->tdb)
437 tdb_close(data->tdb);
458 * Set the block size used for tdb
533 * offset for tdb is different from the backing I/O manager