Lines Matching +defs:load +defs:path

111 #define DNS_LOAD_VALID(load) ISC_MAGIC_VALID(load, LOAD_MAGIC)
114 #define DNS_FORWARD_VALID(load) ISC_MAGIC_VALID(load, FORWARD_MAGIC)
117 #define DNS_IO_VALID(load) ISC_MAGIC_VALID(load, IO_MAGIC)
120 #define DNS_KEYMGMT_VALID(load) ISC_MAGIC_VALID(load, KEYMGMT_MAGIC)
557 DNS_ZONEFLG_LOADING = 0x00002000U, /*%< load from disk in progress*/
605 * load. */
726 * Hold load state.
828 * Hold state for an asynchronous load
988 zone_saveunique(dns_zone_t *zone, const char *path, const char *templat);
2080 * in order to load the raw zone.
2100 * We are trying to load an inline-signed zone. First call
2107 * subsequent attempt to load the signed zone file will
2173 * file changes between the time of the load and the time that
2180 * Don't do the load if the file that stores the zone is older
2203 "skipping load: master file "
2204 "older than last load");
2318 "starting load");
2439 /* If we already have a load pending, stop now */
2588 dns_load_t *load = event->ev_arg;
2592 REQUIRE(DNS_LOAD_VALID(load));
2602 options = get_master_options(load->zone);
2605 load->zone->masterfile, dns_db_origin(load->db),
2606 dns_db_origin(load->db), load->zone->rdclass, options, 0,
2607 &load->callbacks, task, zone_loaddone, load, &load->zone->lctx,
2608 zone_registerinclude, load->zone, load->zone->mctx,
2609 load->zone->masterformat, load->zone->maxttl);
2618 zone_loaddone(load, result);
2731 dns_load_t *load;
2747 load = isc_mem_get(zone->mctx, sizeof(*load));
2749 load->mctx = NULL;
2750 load->zone = NULL;
2751 load->db = NULL;
2752 load->loadtime = loadtime;
2753 load->magic = LOAD_MAGIC;
2755 isc_mem_attach(zone->mctx, &load->mctx);
2756 zone_iattach(zone, &load->zone);
2757 dns_db_attach(db, &load->db);
2758 dns_rdatacallbacks_init(&load->callbacks);
2759 load->callbacks.rawdata = zone_setrawdata;
2760 zone_iattach(zone, &load->callbacks.zone);
2761 result = dns_db_beginload(db, &load->callbacks);
2766 zone_gotreadhandle, load, &zone->readio);
2772 (void)dns_db_endload(load->db, &load->callbacks);
2803 load->magic = 0;
2804 dns_db_detach(&load->db);
2805 zone_idetach(&load->zone);
2806 zone_idetach(&load->callbacks.zone);
2807 isc_mem_detach(&load->mctx);
2808 isc_mem_put(zone->mctx, load, sizeof(*load));
4614 * key zone, load the key zone with the initializing key(s) for that
4616 * an initial-ds in trust-anchors, fetch the DNSKEY RRset, load the key
4661 bool load = true;
4697 load = false;
4710 } else if (load) {
4795 * We've finished loading, or else failed to load, an inline-signing
4797 * 'raw' zone. If we failed to load, then we need it to send a
4936 * Apply update log, if any, on initial load.
5419 * as well, but only if this is a reload, not an initial zone load: in
6586 * 'db' for zone 'zone' in its key directory, then load these keys into 'keys'.
6587 * Only load the public part of a given key if it is not active at timestamp
11319 * Are we pending load/reload, exiting, or unconfigured
16539 * zone->db may be NULL, if the load from disk failed.
17801 dns_load_t *load = arg;
17806 REQUIRE(DNS_LOAD_VALID(load));
17807 zone = load->zone;
17813 * to calling the list of callbacks in the zone load structure.
17816 dns_zone_rpz_disable_db(zone, load->db);
17817 dns_zone_catz_disable_db(zone, load->db);
17820 tresult = dns_db_endload(load->db, &load->callbacks);
17845 (void)zone_postload(zone, load->db, load->loadtime, result);
17848 zone_idetach(&load->callbacks.zone);
17865 load->magic = 0;
17866 dns_db_detach(&load->db);
17867 if (load->zone->lctx != NULL) {
17868 dns_loadctx_detach(&load->zone->lctx);
17870 dns_zone_idetach(&load->zone);
17871 isc_mem_putanddetach(&load->mctx, load, sizeof(*load));
19462 zone_saveunique(dns_zone_t *zone, const char *path, const char *templat) {
19467 buflen = strlen(path) + strlen(templat) + 2;
19471 result = isc_file_template(path, templat, buf, buflen);
19476 result = isc_file_renameunique(path, buf);
19482 "unable to load from '%s'; "
19485 path, buf);