OpenAFS Master Repository branch, master, updated. openafs-devel-1_5_76-4661-g65cffca

Gerrit Code Review gerrit@openafs.org
Fri, 21 Aug 2015 18:53:08 -0400


The following commit has been merged in the master branch:
commit 65cffcadb96389ff3e794eb822d2231220c71160
Author: Andrew Deason <adeason@sinenomine.net>
Date:   Fri Feb 13 17:31:37 2015 -0600

    afs: Use named constants for mvstat
    
    Currently the vcache 'mvstat' field is assigned three magic values: 0
    for normal files and directories, 1 for mountpoint objects, and 2 for
    volume root dirs. These values are clearly defined in comments, but
    everywhere we actually assign or compare these values, we use the bare
    numbers.
    
    Stop this nonsense and use named constants, to make the code less
    inscrutable.
    
    Change-Id: Ic1b133109d619b70317141431f163e552bafd109
    Reviewed-on: http://gerrit.openafs.org/11747
    Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Perry Ruiter <pruiter@sinenomine.net>

 src/afs/DARWIN/osi_misc.c        |    2 +-
 src/afs/DARWIN/osi_vnodeops.c    |    8 ++++----
 src/afs/LINUX/osi_export.c       |   10 +++++-----
 src/afs/LINUX/osi_vnodeops.c     |   16 ++++++++--------
 src/afs/SOLARIS/osi_vnodeops.c   |    6 +++---
 src/afs/VNOPS/afs_vnop_access.c  |    4 ++--
 src/afs/VNOPS/afs_vnop_attrs.c   |    6 +++---
 src/afs/VNOPS/afs_vnop_lookup.c  |   24 ++++++++++++------------
 src/afs/VNOPS/afs_vnop_readdir.c |    8 ++++----
 src/afs/afs.h                    |    7 ++++++-
 src/afs/afs_disconnected.c       |    2 +-
 src/afs/afs_pioctl.c             |    6 +++---
 src/afs/afs_vcache.c             |   24 ++++++++++++------------
 13 files changed, 64 insertions(+), 59 deletions(-)

-- 
OpenAFS Master Repository