/external/e2fsprogs/misc/ |
e2undo.c | 22 #include "ext2fs/tdb.h" 40 static int check_filesystem(TDB_CONTEXT *tdb, io_channel channel) 58 tdb_data = tdb_fetch(tdb, tdb_key); 60 retval = EXT2_ET_TDB_SUCCESS + tdb_error(tdb); 62 _("Failed tdb_fetch %s\n"), tdb_errorstr(tdb)); 79 tdb_data = tdb_fetch(tdb, tdb_key); 81 retval = EXT2_ET_TDB_SUCCESS + tdb_error(tdb); 83 _("Failed tdb_fetch %s\n"), tdb_errorstr(tdb)); 96 static int set_blk_size(TDB_CONTEXT *tdb, io_channel channel) 104 tdb_data = tdb_fetch(tdb, tdb_key) 124 TDB_CONTEXT *tdb; local [all...] |
/external/e2fsprogs/e2fsck/ |
dirinfo.c | 15 #include <ext2fs/tdb.h> 23 TDB_CONTEXT *tdb; member in struct:dir_info_db 65 db->tdb = tdb_open(db->tdb_fn, 0, TDB_CLEAR_IF_FIRST, 90 if (db->tdb) { 92 printf("Note: using tdb!\n"); 140 if (db->tdb) { 189 if (db->tdb) { 195 data = tdb_fetch(db->tdb, key); 197 if (tdb_error(db->tdb) != TDB_ERR_NOEXIST) 199 tdb_errorstr(db->tdb)); [all...] |
/external/e2fsprogs/lib/ext2fs/ |
undo_io.c | 3 * copies the old data being overwritten into a tdb database 40 #include "tdb.h" 60 TDB_CONTEXT *tdb; member in struct:undo_private_data 129 TDB_CONTEXT *tdb) 147 /* Write to tdb file in the file system byte order */ 153 retval = tdb_store(tdb, tdb_key, tdb_data, TDB_INSERT); 155 retval = EXT2_ET_TDB_SUCCESS + tdb_error(tdb); 164 retval = tdb_store(tdb, tdb_key, tdb_data, TDB_INSERT); 166 retval = EXT2_ET_TDB_SUCCESS + tdb_error(tdb); 174 static errcode_t write_block_size(TDB_CONTEXT *tdb, int block_size [all...] |
icount.c | 23 #include "tdb.h" 60 TDB_CONTEXT *tdb; member in struct:ext2_icount 84 if (icount->tdb) 85 tdb_close(icount->tdb); 196 icount->tdb = tdb_open(fn, 0, TDB_CLEAR_IF_FIRST, 198 if (icount->tdb) { 415 if (icount->tdb) { 421 if (tdb_store(icount->tdb, key, data, TDB_REPLACE)) 422 return tdb_error(icount->tdb) + 425 if (tdb_delete(icount->tdb, key) [all...] |
tdbtool.c | 39 #include "tdb.h" 102 /* a tdb tool for manipulating a tdb database */ 104 static TDB_CONTEXT *tdb; variable 168 " move key file : move a record to a destination tdb\n" 189 if (tdb) tdb_close(tdb); 190 tdb = tdb_open(tdbname, 0, TDB_CLEAR_IF_FIRST, 192 if (!tdb) { 199 if (tdb) tdb_close(tdb) [all...] |
tdb.c | 2 URL: svn://svnanon.samba.org/samba/branches/SAMBA_4_0/source/lib/tdb/common 13 ** NOTE! The following LGPL license applies to the tdb 108 #include "tdb.h" 125 #define TDB_MAGIC_FOOD "TDB file\n" 140 #define TDB_HASHTABLE_SIZE(tdb) ((tdb->header.hash_size+1)*sizeof(tdb_off_t)) 147 /* NB assumes there is a local variable called "tdb" that is the 150 #define TDB_LOG(x) tdb->log.log_fn x 162 #define BUCKET(hash) ((hash) % tdb->header.hash_size) 164 #define DOCONV() (tdb->flags & TDB_CONVERT 3815 struct tdb_context *tdb; local 4119 struct tdb_context *tdb; local [all...] |