aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_open_file_cache.h
Commit message (Collapse)AuthorAge
* Disable symlinks: added the "from" parameter support to the open file cache.Valentin Bartenev2012-02-27
|
* Added disable_symlinks directive.Andrey Belov2012-02-13
| | | | | | | | | | | | | | | | | | To completely disable symlinks (disable_symlinks on) we use openat(O_NOFOLLOW) for each path component to avoid races. To allow symlinks with the same owner (disable_symlinks if_not_owner), use openat() (followed by fstat()) and fstatat(AT_SYMLINK_NOFOLLOW), and then compare uids between fstat() and fstatat(). As there is a race between openat() and fstatat() we don't know if openat() in fact opened symlink or not. Therefore, we have to compare uids even if fstatat() reports the opened component isn't a symlink (as we don't know whether it was symlink during openat() or not). Default value is off, i.e. symlinks are allowed.
* Copyright updated.Maxim Konovalov2012-01-18
|
* Use more precise stat.st_blocks to account cache size on UnixIgor Sysoev2011-04-22
| | | | | instead of file length rounded to a file system block size. There is no similar way on Windows, so rounding to a cache->bsize is kept.
* read_aheadIgor Sysoev2009-09-30
|
* *) of.test_only to not open file if only stat() is enoughIgor Sysoev2009-04-27
| | | | *) of.failed to return exact name of failed syscall
* NGX_OPEN_FILE_DIRECTIO_OFFIgor Sysoev2008-10-16
|
* cache directio flag in open file cacheIgor Sysoev2008-09-12
|
* *) handle unaligned file part for directioIgor Sysoev2008-09-05
| | | | *) disable sendfile in directio mode
* directioIgor Sysoev2008-07-30
|
* variables in access_logIgor Sysoev2008-06-30
|
* several fixes:Igor Sysoev2007-12-25
| | | | | | *) do not add event if file was used less than min_uses *) do not rely upon event to avoid race conditions *) ngx_open_file_lookup()
* open_file_cache_min_usesIgor Sysoev2007-12-22
|
* open_file_cache_retest > open_file_cache_validIgor Sysoev2007-12-21
|
* use ngx_queue.hIgor Sysoev2007-12-21
|
* embed sentinelIgor Sysoev2007-12-20
|
* open_file_cache_eventsIgor Sysoev2007-09-03
|
* open file cacheIgor Sysoev2007-09-01