]> git.kaiwu.me - nginx.git/commitdiff
backout O_NOATIME support, it requires CAP_FOWNER capability
authorIgor Sysoev <igor@sysoev.ru>
Thu, 14 Sep 2006 15:05:48 +0000 (15:05 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 14 Sep 2006 15:05:48 +0000 (15:05 +0000)
src/http/modules/ngx_http_index_module.c
src/http/modules/ngx_http_static_module.c
src/os/unix/ngx_files.h
src/os/win32/ngx_files.h

index b84a65e6180059eae815814ed60b8693d3b79ad6..cd1c51ee556cb4287504a66db777a2df663060cd 100644 (file)
@@ -239,8 +239,7 @@ ngx_http_index_handler(ngx_http_request_t *r)
             return NGX_HTTP_INTERNAL_SERVER_ERROR;
         }
 
-        fd = ngx_open_file(ctx->path.data, NGX_FILE_RDONLY|NGX_FILE_NOATIME,
-                           NGX_FILE_OPEN);
+        fd = ngx_open_file(ctx->path.data, NGX_FILE_RDONLY, NGX_FILE_OPEN);
 
         if (fd == (ngx_fd_t) NGX_AGAIN) {
             ctx->current = i;
index 41446109909ad1bc28f6806fbc3cca49b80d485e..f9df46eeb90f010147bf67f33aab15213a74fb26 100644 (file)
@@ -125,8 +125,7 @@ ngx_http_static_handler(ngx_http_request_t *r)
         return NGX_HTTP_INTERNAL_SERVER_ERROR;
     }
 
-    fd = ngx_open_file(path.data, NGX_FILE_RDONLY|NGX_FILE_NOATIME,
-                       NGX_FILE_OPEN);
+    fd = ngx_open_file(path.data, NGX_FILE_RDONLY, NGX_FILE_OPEN);
 
     if (fd == NGX_INVALID_FILE) {
         err = ngx_errno;
index a5724bd205e6bc0791c8455f2953a8dfc457ea25..ff25156997e6cdeb632484c0ac63945e98edaa21 100644 (file)
 #define NGX_FILE_TRUNCATE        O_TRUNC
 #define NGX_FILE_APPEND          O_APPEND
 
-#ifdef O_NOATIME
-#define NGX_FILE_NOATIME         O_NOATIME
-#else
-#define NGX_FILE_NOATIME         0
-#endif
 
 #define ngx_close_file           close
 #define ngx_close_file_n         "close()"
index 57607e3e728d83f03d53170da90053d0f06b0773..c42c055f3311844c4bc7199ba7625f77684ef1a7 100644 (file)
@@ -42,7 +42,6 @@
 #define NGX_FILE_CREATE_OR_OPEN     OPEN_ALWAYS
 #define NGX_FILE_OPEN               OPEN_EXISTING
 #define NGX_FILE_APPEND             0
-#define NGX_FILE_NOATIME            0
 
 
 ngx_int_t ngx_file_append_mode(ngx_fd_t fd);