OpenAFS Master Repository branch, openafs-stable-1_6_x, updated. openafs-stable-1_6_20_2-16-g3257118

Gerrit Code Review gerrit@openafs.org
Fri, 26 May 2017 07:33:19 -0400


The following commit has been merged in the openafs-stable-1_6_x branch:
commit 32571182cbd47b83bdb432c7a6905764413523f9
Author: Michael Meffie <mmeffie@sinenomine.net>
Date:   Wed Apr 29 12:00:24 2015 -0400

    afs: add afsd -inumcalc option
    
    This commit adds the afsd -inumcalc command line switch to specify the
    inode number calculation method in a platform neutral way.
    
    Inode numbers reported for files within the AFS filesystem are generated
    by the cache manager using a calculation which derives a number from a
    FID. Long ago, a new type of calculation was added which generates inode
    numbers using a MD5 message digest of the FID.  The MD5 inode number
    calculation variant is computationally more expensive but greatly
    reduces the chances for inode number collisions.
    
    The MD5 calculation can be enabled on the Linux cache manager using the
    Linux sysctl interface.  Other than the sysctl method of selecting the
    inode calculation type, the MD5 inode number calculation method is not
    specific to Linux.
    
    This change introduces a command-line option which accepts a value to
    indicate the calculation method, instead of a simple flag to enable MD5
    inode numbers.  This should allow for new inode calculation methods
    in the future without the need for additional afsd command-line flags.
    
    Two values are currently accepted for -inumcalc. The value of 'compat'
    specifies the legacy inode number calculation. The value 'md5' indicates
    that the new MD5 calculation is to be used.
    
    Reviewed-on: https://gerrit.openafs.org/11855
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
    (cherry picked from commit 0028ea92ad3e7aac6a4c51f63703a4d9d7b9dcd6)
    
    Change-Id: I9021eea9f64c754157061d039f63b6f744ec2ec5
    Reviewed-on: https://gerrit.openafs.org/12608
    Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
    Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
    Tested-by: Stephan Wiesand <stephan.wiesand@desy.de>

 doc/man-pages/pod8/afsd.pod |   19 +++++++++++++++++++
 src/afs/LINUX/osi_sysctl.c  |    4 ++--
 src/afs/afs_call.c          |   16 ++++++++++++++++
 src/afs/afs_util.c          |    4 ++--
 src/afsd/afsd.c             |   36 ++++++++++++++++++++++++++++++++++++
 src/config/afs_args.h       |    9 +++++++++
 6 files changed, 84 insertions(+), 4 deletions(-)

-- 
OpenAFS Master Repository