Lines Matching defs:path

34     ngx_path_t *path);
54 ngx_str_t *path);
56 ngx_str_t *path);
58 ngx_str_t *path);
60 ngx_str_t *path);
64 ngx_str_t *path);
94 if (ngx_strcmp(cache->path->name.data, ocache->path->name.data) != 0) {
96 "cache \"%V\" uses the \"%V\" cache path "
97 "while previously it used the \"%V\" cache path",
98 &shm_zone->shm.name, &cache->path->name,
99 &ocache->path->name);
105 if (cache->path->level[n] != ocache->path->level[n]) {
121 cache->path->loader = NULL;
131 cache->bsize = ngx_fs_bsize(cache->path->name.data);
154 cache->bsize = ngx_fs_bsize(cache->path->name.data);
218 if (ngx_http_file_cache_name(r, cache->path) != NGX_OK) {
337 if (ngx_http_file_cache_name(r, cache->path) != NGX_OK) {
932 ngx_http_file_cache_name(ngx_http_request_t *r, ngx_path_t *path)
943 c->file.name.len = path->name.len + 1 + path->len
951 ngx_memcpy(c->file.name.data, path->name.data, path->name.len);
953 p = c->file.name.data + path->name.len + 1 + path->len;
957 ngx_create_hashed_filename(path, c->file.name.data, c->file.name.len);
1346 if (ngx_http_file_cache_name(r, cache->path) != NGX_OK) {
1707 ngx_path_t *path;
1714 path = cache->path;
1715 len = path->name.len + 1 + path->len + 2 * NGX_HTTP_CACHE_KEY_LEN;
1722 ngx_memcpy(name, path->name.data, path->name.len);
1769 ngx_path_t *path;
1778 path = cache->path;
1779 len = path->name.len + 1 + path->len + 2 * NGX_HTTP_CACHE_KEY_LEN;
1786 ngx_memcpy(name, path->name.data, path->name.len);
1880 ngx_path_t *path;
1888 path = cache->path;
1889 p = name + path->name.len + 1 + path->len;
1900 len = path->name.len + 1 + path->len + 2 * NGX_HTTP_CACHE_KEY_LEN;
1901 ngx_create_hashed_filename(path, name, len);
2030 if (ngx_walk_tree(&tree, &cache->path->name) == NGX_ABORT) {
2040 &cache->path->name,
2047 ngx_http_file_cache_noop(ngx_tree_ctx_t *ctx, ngx_str_t *path)
2054 ngx_http_file_cache_manage_file(ngx_tree_ctx_t *ctx, ngx_str_t *path)
2061 if (ngx_http_file_cache_add_file(ctx, path) != NGX_OK) {
2062 (void) ngx_http_file_cache_delete_file(ctx, path);
2086 ngx_http_file_cache_manage_directory(ngx_tree_ctx_t *ctx, ngx_str_t *path)
2088 if (path->len >= 5
2089 && ngx_strncmp(path->data + path->len - 5, "/temp", 5) == 0)
2220 ngx_http_file_cache_delete_file(ngx_tree_ctx_t *ctx, ngx_str_t *path)
2223 "http file cache delete: \"%s\"", path->data);
2225 if (ngx_delete_file(path->data) == NGX_FILE_ERROR) {
2227 ngx_delete_file_n " \"%s\" failed", path->data);
2292 cache->path = ngx_pcalloc(cf->pool, sizeof(ngx_path_t));
2293 if (cache->path == NULL) {
2315 cache->path->name = value[1];
2317 if (cache->path->name.data[cache->path->name.len - 1] == '/') {
2318 cache->path->name.len--;
2321 if (ngx_conf_full_name(cf->cycle, &cache->path->name, 0) != NGX_OK) {
2336 cache->path->level[n] = *p++ - '0';
2337 cache->path->len += cache->path->level[n] + 1;
2353 if (cache->path->len < 10 + NGX_MAX_PATH_LEVEL) {
2534 cache->path->manager = ngx_http_file_cache_manager;
2535 cache->path->loader = ngx_http_file_cache_loader;
2536 cache->path->data = cache;
2537 cache->path->conf_file = cf->conf_file->file.name.data;
2538 cache->path->line = cf->conf_file->line;
2546 if (ngx_add_path(cf, &cache->path) != NGX_OK) {