Lines Matching defs:journal

1 /*	$NetBSD: journal.c,v 1.13 2025/01/26 16:25:23 christos Exp $	*/
37 #include <dns/journal.h>
46 * A journal file consists of
52 * of some arbitrary subset of the journal's addressable
57 * journal files, but does not change during the lifetime
60 * \li The journal data. This consists of one or more transactions.
69 * The journal data part grows as new transactions are
76 * appended to the journal but never committed by updating
180 * On-disk representation of a "pointer" to a journal entry.
181 * These are used in the journal header to locate the beginning
182 * and end of the journal, and in the journal index to locate
209 * The on-disk representation of the journal header.
260 * The in-core representation of the journal header.
298 * journal file.
301 * to identify the file as a BIND 9 journal file. An ASCII
303 * number to be consistent with BIND 8 (BIND 8 journal files
332 * while reading the journal */
337 journal_header_t header; /*%< In-core journal header */
338 unsigned char *rawindex; /*%< In-core buffer for journal index
340 journal_pos_t *index; /*%< In-core journal index */
351 /* These define the part of the journal we iterate over. */
643 "journal file %s does not exist, "
696 "%s: journal format not recognized", j->filename);
801 * entries in the IXFR-style journal file.
868 * transaction headers in a version 1 journal.
931 * Advance '*pos' to the next journal transaction.
934 * *pos refers to a valid journal transaction.
938 * *pos refers to the next journal transaction.
983 "%s: journal file corrupt: "
1011 * If the index of the journal 'j' contains an entry "better"
1100 * in the journal 'j'.
1105 * last transaction in the journal), set '*pos' to
1110 * covered by the journal but that particular serial number is missing
1111 * (from the journal, not just from the index), return ISC_R_NOTFOUND.
1114 * covered by the journal, return ISC_R_RANGE.
1204 isc_log_write(JOURNAL_DEBUG_LOGARGS(3), "writing to journal");
1229 "dns_journal_writediff: %s: journal entry "
1272 * Write the buffer contents to the journal file.
1337 * We currently don't support huge journal entries.
1342 "transaction too big to be stored in journal: "
1349 * Some old journal entries may become non-addressable
1388 * Update the journal header.
1475 * Roll the open journal 'j' into the database 'db'.
1486 uint32_t end_serial; /* Last journal SOA serial */
1519 * Locate a journal entry for the current database serial.
1527 * to see if the journal needs rewriting: if any outdated
1568 "%s: journal file corrupt: missing "
1635 uint32_t end_serial; /* Last journal SOA serial */
1646 isc_log_write(JOURNAL_DEBUG_LOGARGS(3), "no journal file");
1650 "journal open failure: %s: %s",
1711 "%s: journal file corrupt: missing "
1760 "%s: cannot print: journal file corrupt", j->filename);
1828 * When serving an outgoing IXFR, we transmit a part the journal starting
1831 * serial number is not necessarily at the end of the journal:
1832 * the journal may grow while the IXFR is in progress, but we stop
1884 * numbers are in the journal. Scan through them,
1965 "%s: journal corrupt: possible integer overflow",
1980 "%s: journal corrupt: empty transaction",
1994 "%s: journal file corrupt: "
2009 * Perform a sanity check on the journal RR size.
2017 "%s: journal corrupt: impossible RR size "
2059 "%s: journal corrupt: impossible rdlen "
2373 * Compare the databases 'dba' and 'dbb' and generate a journal
2375 * the order). This journal entry will consist of a single,
2397 dns_journal_t *journal = NULL;
2401 DNS_JOURNAL_CREATE, &journal);
2410 if (journal != NULL) {
2414 CHECK(dns_journal_write_transaction(journal, diff));
2419 if (journal != NULL) {
2420 dns_journal_destroy(&journal);
2510 * Always perform a re-write when processing a version 1 journal.
2515 * Check whether we need to rewrite the whole journal
2624 * journal to fix outdated transaction headers;
2625 * otherwise we'll copy the whole journal without
2643 "%s: journal file corrupt, "
2652 * If we're repairing an outdated journal, the
2677 "%s: journal file corrupt, "
2754 * Update the journal header.
2788 * Any IXFR outs will just continue and the old journal will be
2793 * this will fail, and the journal will not be compacted. But