Mark the masterfile-format type 'map' as deprecated

The map masterfile-format is very fragile and it needs API bump every
time a RBTDB data structures changes.  Also while testing it, we found
out that files larger than 2GB weren't loading and nobody noticed, and
loading many map files were also failing (subject to kernel limits).

Thus we are marking the masterfile-format type 'map' as deprecated and
to be removed in the next stable BIND 9 release.
This commit is contained in:
Ondřej Surý 2021-09-16 10:38:22 +02:00 committed by Ondřej Surý
parent 04e3983817
commit 6b7a488cbc
2 changed files with 6 additions and 0 deletions

View file

@ -1053,6 +1053,9 @@ named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
masterformat = dns_masterformat_raw;
} else if (strcasecmp(masterformatstr, "map") == 0) {
masterformat = dns_masterformat_map;
cfg_obj_log(obj, named_g_lctx, ISC_LOG_WARNING,
"masterfile-format: format 'map' is "
"deprecated");
} else {
INSIST(0);
ISC_UNREACHABLE();

View file

@ -3459,6 +3459,9 @@ check_zoneconf(const cfg_obj_t *zconfig, const cfg_obj_t *voptions,
masterformat = dns_masterformat_raw;
} else if (strcasecmp(masterformatstr, "map") == 0) {
masterformat = dns_masterformat_map;
cfg_obj_log(obj, logctx, ISC_LOG_WARNING,
"masterfile-format: format 'map' is "
"deprecated");
} else {
INSIST(0);
ISC_UNREACHABLE();