Lines Matching defs:tdb
22 #include "ext2fs/tdb.h"
39 static int check_filesystem(TDB_CONTEXT *tdb, io_channel channel)
57 tdb_data = tdb_fetch(tdb, tdb_key);
59 retval = EXT2_ET_TDB_SUCCESS + tdb_error(tdb);
61 _("Failed tdb_fetch %s\n"), tdb_errorstr(tdb));
78 tdb_data = tdb_fetch(tdb, tdb_key);
80 retval = EXT2_ET_TDB_SUCCESS + tdb_error(tdb);
82 _("Failed tdb_fetch %s\n"), tdb_errorstr(tdb));
95 static int set_blk_size(TDB_CONTEXT *tdb, io_channel channel)
103 tdb_data = tdb_fetch(tdb, tdb_key);
105 retval = EXT2_ET_TDB_SUCCESS + tdb_error(tdb);
107 _("Failed tdb_fetch %s\n"), tdb_errorstr(tdb));
123 TDB_CONTEXT *tdb;
158 tdb = tdb_open(tdb_file, 0, 0, O_RDONLY, 0600);
160 if (!tdb) {
187 if (!force && check_filesystem(tdb, channel)) {
191 if (set_blk_size(tdb, channel)) {
195 for (key = tdb_firstkey(tdb); key.dptr; key = tdb_nextkey(tdb, key)) {
202 data = tdb_fetch(tdb, key);
205 _("Failed tdb_fetch %s\n"), tdb_errorstr(tdb));
221 tdb_close(tdb);