~guilhem-fr/nginx/nginx-1.0

Viewing all changes in revision 3349.

  • Committer: mdounin
  • Date: 2012-03-05 13:20:40 UTC
  • Revision ID: svn-v4:73f98a42-aea0-e011-b76d-00259023448c:branches/stable-1.0:4517
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).

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: