OpenAFS Master Repository branch, master, updated. BP--openafs-stable-1_6_x-140-ga00da7d

Gerrit Code Review gerrit@openafs.org
Mon, 20 Sep 2010 21:07:14 -0700 (PDT)


The following commit has been merged in the master branch:
commit a00da7d2c9a66f1e5984ec2b3bd3efe10793e1c9
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
    
    Change-Id: I01c5122a153fadc3824ff916655b0199d5c1de3c
    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>

 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