MCPcopy Create free account
hub / github.com/apache/httpd / set_cache_dirlength

Function set_cache_dirlength

modules/cache/mod_cache_disk.c:1464–1477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1462 return NULL;
1463}
1464static const char
1465*set_cache_dirlength(cmd_parms *parms, void *in_struct_ptr, const char *arg)
1466{
1467 disk_cache_conf *conf = ap_get_module_config(parms->server->module_config,
1468 &cache_disk_module);
1469 int val = atoi(arg);
1470 if (val < 1)
1471 return "CacheDirLength value must be an integer greater than 0";
1472 if (val * conf->dirlevels > CACHEFILE_LEN)
1473 return "CacheDirLevels*CacheDirLength value must not be higher than 20";
1474
1475 conf->dirlength = val;
1476 return NULL;
1477}
1478
1479static const char
1480*set_cache_minfs(cmd_parms *parms, void *in_struct_ptr, const char *arg)

Callers

nothing calls this directly

Calls 1

ap_get_module_configFunction · 0.85

Tested by

no test coverage detected