Lines Matching refs:tdb
23 TDB_CONTEXT *tdb; member
66 db->tdb = NULL; in setup_tdb()
73 db->tdb = tdb_open(db->tdb_fn, num_dirs, TDB_NOLOCK | TDB_NOSYNC, in setup_tdb()
98 if (db->tdb) { in setup_db()
148 if (db->tdb) { in e2fsck_add_dir_info()
197 if (db->tdb) { in e2fsck_get_dir_info()
203 data = tdb_fetch(db->tdb, key); in e2fsck_get_dir_info()
205 if (tdb_error(db->tdb) != TDB_ERR_NOEXIST) in e2fsck_get_dir_info()
207 tdb_errorstr(db->tdb)); in e2fsck_get_dir_info()
275 if (!db->tdb) in e2fsck_put_dir_info()
286 if (tdb_store(db->tdb, key, data, TDB_REPLACE) == -1) { in e2fsck_put_dir_info()
287 printf("store failed: %s\n", tdb_errorstr(db->tdb)); in e2fsck_put_dir_info()
298 if (ctx->dir_info->tdb) in e2fsck_free_dir_info()
299 tdb_close(ctx->dir_info->tdb); in e2fsck_free_dir_info()
330 if (db->tdb) in e2fsck_dir_info_iter_begin()
331 iter->tdb_iter = tdb_firstkey(db->tdb); in e2fsck_dir_info_iter_begin()
356 if (db->tdb) { in e2fsck_dir_info_iter()
360 data = tdb_fetch(db->tdb, key); in e2fsck_dir_info_iter()
363 tdb_errorstr(db->tdb)); in e2fsck_dir_info_iter()
370 iter->tdb_iter = tdb_nextkey(db->tdb, key); in e2fsck_dir_info_iter()