Lines Matching defs:dbd
16 dbd specs and implementation progress
54 OK Step through dbd (the one on disk) and rebuild-db from pass 1 and delete any CNID from
55 dbd not in rebuild db. This in only done in exclusive mode.
78 #include "dbd.h"
89 static DBD *dbd;
105 static char dbpath[MAXPATHLEN+1]; /* Path to the dbd database */
173 printf("dbd (Netatalk %s)\n"
174 "Usage: dbd [-e|-t|-v|-x] -d [-i] | -s [-c|-n]| -r [-c|-f] | -u <path to netatalk volume>\n"
175 "dbd can dump, scan, reindex and rebuild Netatalk dbd CNID databases.\n"
176 "dbd must be run with appropiate permissions i.e. as root.\n\n"
400 if ((dbd = dbif_init(dbpath, "cnid2.db")) == NULL)
403 if (dbif_env_open(dbd,
413 if (dbif_open(dbd, NULL, rebuildindexes) < 0) {
414 dbif_close(dbd);
420 (void)dbif_txn_close(dbd, 1);
435 if (dbif_dump(dbd, dumpindexes) < 0) {
439 if (cmd_dbd_scanvol(dbd, &volinfo, flags) < 0) {
448 if (dbif_close(dbd) < 0) {