Home
last modified time | relevance | path

Searched refs:tdb (Results 1 – 25 of 49) sorted by relevance

12

/third_party/e2fsprogs/lib/ext2fs/
Dtdb.c145 #define TDB_HASHTABLE_SIZE(tdb) ((tdb->header.hash_size+1)*sizeof(tdb_off_t)) argument
155 #define TDB_LOG(x) tdb->log.log_fn x
167 #define BUCKET(hash) ((hash) % tdb->header.hash_size)
169 #define DOCONV() (tdb->flags & TDB_CONVERT)
262 static int tdb_munmap(struct tdb_context *tdb);
263 static void tdb_mmap(struct tdb_context *tdb);
264 static int tdb_lock(struct tdb_context *tdb, int list, int ltype);
265 int tdb_lock_nonblock(struct tdb_context *tdb, int list, int ltype);
266 static int tdb_unlock(struct tdb_context *tdb, int list, int ltype);
267 static int tdb_brlock(struct tdb_context *tdb, tdb_off_t offset, int rw_type, int lck_type, int pro…
[all …]
Dtdb.h51 #define TDB_ERRCODE(code, ret) ((tdb->ecode = (code)), ret)
152 void tdb_set_max_dead(struct tdb_context *tdb, int max_dead);
154 int tdb_reopen(struct tdb_context *tdb);
156 void tdb_set_logging_function(struct tdb_context *tdb, const struct tdb_logging_context *log_ctx);
157 enum TDB_ERROR tdb_error(struct tdb_context *tdb);
158 const char *tdb_errorstr(struct tdb_context *tdb);
159 TDB_DATA tdb_fetch(struct tdb_context *tdb, TDB_DATA key);
160 int tdb_parse_record(struct tdb_context *tdb, TDB_DATA key,
164 int tdb_delete(struct tdb_context *tdb, TDB_DATA key);
165 int tdb_store(struct tdb_context *tdb, TDB_DATA key, TDB_DATA dbuf, int flag);
[all …]
Dtdbtool.c105 static TDB_CONTEXT *tdb; variable
190 if (tdb) tdb_close(tdb); in create_tdb()
191 tdb = tdb_open(tdbname, 0, TDB_CLEAR_IF_FIRST, in create_tdb()
193 if (!tdb) { in create_tdb()
200 if (tdb) tdb_close(tdb); in open_tdb()
201 tdb = tdb_open(tdbname, 0, 0, O_RDWR, 0600); in open_tdb()
202 if (!tdb) { in open_tdb()
221 if (tdb_store(tdb, key, dbuf, TDB_INSERT) == -1) { in insert_tdb()
246 print_rec(tdb, key, dbuf, NULL); in store_tdb()
248 if (tdb_store(tdb, key, dbuf, TDB_REPLACE) == -1) { in store_tdb()
[all …]
Dicount.c62 TDB_CONTEXT *tdb; member
89 if (icount->tdb) in ext2fs_free_icount()
90 tdb_close(icount->tdb); in ext2fs_free_icount()
240 icount->tdb = tdb_open(fn, num_inodes, TDB_NOLOCK | TDB_NOSYNC, in ext2fs_create_icount_tdb()
243 if (icount->tdb == NULL) { in ext2fs_create_icount_tdb()
439 if (icount->tdb) { in set_inode_count()
445 if (tdb_store(icount->tdb, key, data, TDB_REPLACE)) in set_inode_count()
446 return tdb_error(icount->tdb) + in set_inode_count()
449 if (tdb_delete(icount->tdb, key)) in set_inode_count()
450 return tdb_error(icount->tdb) + in set_inode_count()
[all …]
DMakefile.in54 @TDB_CMT@TDB_OBJ= tdb.o
212 $(srcdir)/tdb.c \
231 tdb.h qcow2.h hashmap.h
365 $(Q) $(CC) -o ext2_tdbtool tdbtool.o tdb.o $(ALL_LDFLAGS) $(SYSLIBS)
922 $(srcdir)/tdb.h
1119 tdb.o: $(srcdir)/tdb.c $(top_builddir)/lib/config.h \
1120 $(top_builddir)/lib/dirpaths.h $(srcdir)/tdb.h
/third_party/e2fsprogs/lib/ext2fs/tdb/patches/
Dstatic-prototypes1 Index: tdbsa/tdb.c
3 --- tdbsa.orig/tdb.c
4 +++ tdbsa/tdb.c
9 -int tdb_munmap(struct tdb_context *tdb);
10 -void tdb_mmap(struct tdb_context *tdb);
11 -int tdb_lock(struct tdb_context *tdb, int list, int ltype);
12 -int tdb_unlock(struct tdb_context *tdb, int list, int ltype);
13 -int tdb_brlock(struct tdb_context *tdb, tdb_off_t offset, int rw_type, int lck_type, int probe, si…
14 -int tdb_transaction_lock(struct tdb_context *tdb, int ltype);
15 -int tdb_transaction_unlock(struct tdb_context *tdb);
[all …]
Dstatic-functions1 Index: tdbsa/tdb.c
3 --- tdbsa.orig/tdb.c
4 +++ tdbsa/tdb.c
9 -int tdb_rec_free_read(struct tdb_context *tdb, tdb_off_t off, struct list_struct *rec)
10 +static int tdb_rec_free_read(struct tdb_context *tdb, tdb_off_t off, struct list_struct *rec)
12 if (tdb->methods->tdb_read(tdb, off, rec, sizeof(*rec),DOCONV()) == -1)
Dext2tdb-rename1 Index: tdb/tdb.h
3 --- tdb.orig/tdb.h
4 +++ tdb/tdb.h
9 +/* ext2fs tdb renames */
Dreplace-includes1 Index: tdb/tdb.c
3 --- tdb.orig/tdb.c
4 +++ tdb/tdb.c
90 #include "tdb.h"
Dcopyright1 Index: tdbsa/tdb.c
3 --- tdbsa.orig/tdb.c
4 +++ tdbsa/tdb.c
19 ** NOTE! The following LGPL license applies to the tdb
Dtdbtool-includes28 #include "tdb.h"
/third_party/e2fsprogs/lib/ext2fs/tdb/
Dbuild-tdb7 BASE_DIR=/usr/projects/samba/tdb
15 echo "/*" > tdb.c
16 grep ^URL .svninfo >> tdb.c
17 grep "^Last Changed Rev" .svninfo | sed -e 's/Last Changed //' >> tdb.c
18 grep "^Last Changed Date" .svninfo >> tdb.c
19 echo "*/" >> tdb.c
21 cat $BASE_DIR/common/tdb_private.h >> tdb.c
23 if [ `tail -n 1 tdb.c | wc -c` -gt 1 ]; then
24 printf "\n" >> tdb.c
26 echo "/* file: $i */" >> tdb.c
[all …]
/third_party/e2fsprogs/e2fsck/
Ddirinfo.c26 TDB_CONTEXT *tdb; member
76 db->tdb = NULL; in setup_tdb()
83 db->tdb = tdb_open(db->tdb_fn, num_dirs, TDB_NOLOCK | TDB_NOSYNC, in setup_tdb()
110 if (db->tdb) { in setup_db()
163 if (ctx->dir_info->tdb) { in e2fsck_add_dir_info()
217 if (db->tdb) { in e2fsck_get_dir_info()
225 data = tdb_fetch(db->tdb, key); in e2fsck_get_dir_info()
227 if (tdb_error(db->tdb) != TDB_ERR_NOEXIST) in e2fsck_get_dir_info()
229 tdb_errorstr(db->tdb)); in e2fsck_get_dir_info()
303 if (!db->tdb) in e2fsck_put_dir_info()
[all …]
DMakefile.in482 $(top_srcdir)/lib/ext2fs/tdb.h
/third_party/e2fsprogs/util/
Dsubst.conf.in20 # Enable the documentation for the tdb profile in e2fsck.conf's man page
/third_party/e2fsprogs/tests/u_mke2fs_opt_offset/
Dscript36 # (tdb block 30) is extended by the fs block 992 (tdb block 31)
/third_party/pulseaudio/
Dmeson_options.txt21 type : 'combo', value : 'tdb',
22 choices : [ 'gdbm', 'tdb', 'simple' ],
Dconfigure.ac714 …AS_HELP_STRING([--with-database=auto|tdb|gdbm|simple],[Choose database backend.]),[],[with_databas…
718 [PKG_CHECK_MODULES(TDB, [ tdb ], HAVE_TDB=1, HAVE_TDB=0)],
720 AS_IF([test "x$HAVE_TDB" = "x1"], with_database=tdb)
723 [AC_MSG_ERROR([*** tdb not found])])
754 AS_IF([test "x$HAVE_TDB" = "x1"], AC_DEFINE([HAVE_TDB], 1, [Have tdb?]))
1722 tdb: ${ENABLE_TDB}
Dmeson.build513 if get_option('database') == 'tdb'
514 database_dep = dependency('tdb')
/third_party/pulseaudio/src/pulsecore/
Dmeson.build114 if get_option('database') == 'tdb'
115 libpulsecore_sources += 'database-tdb.c'
/third_party/e2fsprogs/doc/RelNotes/
Dv1.43.1.txt22 The configure script now supports --disable-tdb since on 64-bit
Dv1.43.0.txt46 faster than the old tdb-based scheme. Since it so much faster,
Dv1.40.txt291 Update to the latest samba tdb code before the LGPLv3 change, which
602 A recent change to e2fsck_add_dir_info() to use tdb files to check
/third_party/e2fsprogs/
Dconfigure.ac842 dnl handle --disable-tdb
844 AH_TEMPLATE([CONFIG_TDB], [Define to 1 to enable tdb support])
845 AC_ARG_ENABLE([tdb], optenable
846 AS_HELP_STRING([--disable-tdb],[disable tdb support]),
849 AC_MSG_RESULT([Disabling tdb support])
853 AC_MSG_RESULT([Enabling tdb support])
/third_party/e2fsprogs/lib/
Dconfig.h.in21 /* Define to 1 to enable tdb support */

12