]> git.kaiwu.me - nginx.git/commit
Merge of r4499: workaround for fs_size on ZFS (ticket #46).
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 5 Mar 2012 13:20:40 +0000 (13:20 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 5 Mar 2012 13:20:40 +0000 (13:20 +0000)
commit1b6a7864a1777b070851fead7626fb21862932b3
tree4326f8cffcf6d4cafbde114ab8a35bd216203eb1
parent0ffc4c3218a2a1ca45405754c86221d295d00dd1
Merge of r4499: 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).
src/os/unix/ngx_files.h