OpenAFS Master Repository branch, openafs-stable-1_6_x, updated. openafs-devel-1_5_77-64-g47d7923

Gerrit Code Review gerrit@openafs.org
Mon, 25 Oct 2010 14:35:02 -0700 (PDT)


The following commit has been merged in the openafs-stable-1_6_x branch:
commit 47d79237b6378a95907df110d96c262896779e61
Author: Jeffrey Altman <jaltman@your-file-system.com>
Date:   Thu Sep 16 14:23:41 2010 +0200

    Windows: Negative Caching for Volume Lookups
    
    If a volume lookup returns VL_NOENT or VL_BADNAME, cache the negative
    response for five minutes.  This prevents volume lookup storms caused
    by the same volume lookup being performed repeated during a short
    time period.  This can happen if mount points to volumes that do not
    exist are present in a directory that is being evaluated by Windows
    Explorer or Common Control File Dialogs.
    
    This functionality is implemented by storing the most recent update
    time for the volume group as part of the cm_volume_t.  A non-existing
    volume group is identified with a new CM_VOLUMEFLAG_NOEXIST flag.
    The presence of the lastUpdateTime value also permits volume location
    information to expire at lastUpdateTime + lifetime instead of expiring
    all volume information simultaneously each lifetime period.
    
    LICENSE MIT
    
    Reviewed-on: http://gerrit.openafs.org/2771
    Reviewed-by: Derrick Brashear <shadow@dementia.org>
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
    Tested-by: Jeffrey Altman <jaltman@openafs.org>
    (cherry picked from commit a00da7d2c9a66f1e5984ec2b3bd3efe10793e1c9)
    Change-Id: I3603e746a6df1834612647931cc09228428842db
    Reviewed-on: http://gerrit.openafs.org/3132
    Tested-by: Derrick Brashear <shadow@dementia.org>

 src/WINNT/afsd/cm_daemon.c |    8 +++-
 src/WINNT/afsd/cm_ioctl.c  |    2 +-
 src/WINNT/afsd/cm_memmap.c |    2 +-
 src/WINNT/afsd/cm_scache.h |    2 +-
 src/WINNT/afsd/cm_volume.c |   78 +++++++++++++++++++-------------------------
 src/WINNT/afsd/cm_volume.h |    4 ++-
 6 files changed, 46 insertions(+), 50 deletions(-)

-- 
OpenAFS Master Repository