MCPcopy Index your code
hub / github.com/apache/httpd / data_file

Function data_file

modules/cache/mod_cache_disk.c:92–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92static char *data_file(apr_pool_t *p, disk_cache_conf *conf,
93 disk_cache_object_t *dobj, const char *name)
94{
95 if (!dobj->hashfile) {
96 dobj->hashfile = ap_cache_generate_name(p, conf->dirlevels,
97 conf->dirlength, name);
98 }
99
100 if (dobj->prefix) {
101 return apr_pstrcat(p, dobj->prefix, CACHE_VDIR_SUFFIX "/",
102 dobj->hashfile, CACHE_DATA_SUFFIX, NULL);
103 }
104 else {
105 return apr_pstrcat(p, conf->cache_root, "/", dobj->hashfile,
106 CACHE_DATA_SUFFIX, NULL);
107 }
108}
109
110static apr_status_t mkdir_structure(disk_cache_conf *conf, const char *file, apr_pool_t *pool)
111{

Callers 3

create_entityFunction · 0.85
open_entityFunction · 0.85
write_headersFunction · 0.85

Calls 1

ap_cache_generate_nameFunction · 0.85

Tested by

no test coverage detected