OpenAFS Master Repository branch, openafs-stable-1_4_x, updated. 845f139b1fdb6dc6956a0ff97205ec051b8281cb

Gerrit Code Review gerrit@openafs.org
Tue, 13 Oct 2009 18:15:37 -0700 (PDT)


The following commit has been merged in the openafs-stable-1_4_x branch:
commit 845f139b1fdb6dc6956a0ff97205ec051b8281cb
Author: Andrew Deason <adeason@sinenomine.net>
Date:   Thu Sep 24 12:02:55 2009 -0500

    Use f_bsize for ZFS afs_fsfragsize
    
    On ZFS, the disk space files can use up can be rounded up to the next
    recordsize boundary if they've been truncated. This can cause the Unix CM
    to mis-estimate cache usage, since it truncates files fairly often, and
    assumes the disk space used is the file length rounded up to the next
    f_frsize.
    
    Since the ZFS recordsize is available via the statvfs f_bsize, just
    round up to that instead. There is still some additional file metadata
    that takes up some additional space on disk, but according to ZFS people
    I've spoken to about this, it cannot be known in advance. In practice,
    the additional metadata storage doesn't appear to exceed about 10% of
    the data storage, which should be acceptable.
    
    FIXES 125365
    
    Reviewed-on: http://gerrit.openafs.org/650
    Reviewed-by: Derrick Brashear <shadow@dementia.org>
    Tested-by: Andrew Deason <adeason@sinenomine.net>
    (cherry picked from commit 78d8b8c5c19b8d6873b2d62beaa60cc7acba1840)
    Reviewed-on: http://gerrit.openafs.org/655
    Tested-by: Derrick Brashear <shadow@dementia.org>

 src/afs/afs_init.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

-- 
OpenAFS Master Repository