aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_user.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2012-02-28 11:09:02 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2012-02-28 11:09:02 +0000
commitc66a1e7a172e042e8a3822192e79853e2afac4e6 (patch)
treed7ad47d4d0cae80e0743e494717a01ee27ebdad6 /src/os/unix/ngx_user.c
parent7ca6c1ff782afbb83b9f17d6552566c823247e29 (diff)
downloadnginx-c66a1e7a172e042e8a3822192e79853e2afac4e6.tar.gz
nginx-c66a1e7a172e042e8a3822192e79853e2afac4e6.zip
Workaround for fs_size on ZFS (ticket #46).
ZFS reports incorrect st_blocks until file settles on disk, and this may take a while (i.e. just after creation of a file the st_blocks value is incorrect). As a workaround we now use st_blocks only if st_blocks * 512 > st_size, this should fix ZFS problems while still preserving accuracy for other filesystems. The problem had appeared in r3900 (1.0.1).
Diffstat (limited to 'src/os/unix/ngx_user.c')
0 files changed, 0 insertions, 0 deletions