Klaus Demo nginx / ad1e123
NGX_OPEN_FILE_DIRECTIO_OFF Igor Sysoev 13 years ago
3 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
99
1010 #ifndef _NGX_OPEN_FILE_CACHE_H_INCLUDED_
1111 #define _NGX_OPEN_FILE_CACHE_H_INCLUDED_
12
13
14 #define NGX_OPEN_FILE_DIRECTIO_OFF NGX_MAX_OFF_T_VALUE
1215
1316
1417 typedef struct {
432432 of.log = 1;
433433 of.valid = llcf->open_file_cache_valid;
434434 of.min_uses = llcf->open_file_cache_min_uses;
435 of.directio = NGX_MAX_OFF_T_VALUE;
435 of.directio = NGX_OPEN_FILE_DIRECTIO_OFF;
436436
437437 if (ngx_open_cached_file(llcf->open_file_cache, &log, &of, r->pool)
438438 != NGX_OK)
34693469 value = cf->args->elts;
34703470
34713471 if (ngx_strcmp(value[1].data, "off") == 0) {
3472 clcf->directio = NGX_MAX_OFF_T_VALUE;
3472 clcf->directio = NGX_OPEN_FILE_DIRECTIO_OFF;
34733473 return NGX_CONF_OK;
34743474 }
34753475