Lines Matching refs:tdb_path
188 int tdb_validate_open(const char *tdb_path, tdb_validate_data_func validate_fn)
193 DEBUG(5, ("tdb_validate_open called for tdb '%s'\n", tdb_path));
195 tdb = tdb_open_log(tdb_path, 0, TDB_DEFAULT, O_RDWR, 0);
197 DEBUG(1, ("Error opening tdb %s\n", tdb_path));
435 int tdb_validate_and_backup(const char *tdb_path,
452 tdb_path_backup = talloc_asprintf(ctx, "%s%s", tdb_path, backup_suffix);
454 ret = tdb_validate_open(tdb_path, validate_fn);
457 DEBUG(1, ("tdb '%s' is valid\n", tdb_path));
458 ret = tdb_backup_with_rotate(ctx, tdb_path, tdb_path_backup, 0,
462 tdb_path));
467 tdb_path_backup, tdb_path));
470 DEBUG(1, ("tdb '%s' is invalid\n", tdb_path));
487 int renamed = rename_file_with_suffix(ctx, tdb_path,
491 tdb_path, corrupt_suffix));
494 tdb_path, corrupt_suffix));
500 ret = tdb_backup_with_rotate(ctx, tdb_path_backup, tdb_path, 0,