| 90 | } |
| 91 | |
| 92 | static 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 | |
| 110 | static apr_status_t mkdir_structure(disk_cache_conf *conf, const char *file, apr_pool_t *pool) |
| 111 | { |
no test coverage detected