]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-memcache-no-volitems-20050113
authorDerrick Brashear <shadow@dementia.org>
Mon, 31 Jan 2005 04:09:51 +0000 (04:09 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 31 Jan 2005 04:09:51 +0000 (04:09 +0000)
Don't try to open VolumeItems when using memcache

(cherry picked from commit 1307b891888c61debe2eadd47ddfe8717fc75ddd)

src/afsd/afsd.c

index 7679138958d92e35e74e732eaf2c14b29687180d..f8b23e95257644b3ed0b0877b6966f9534e0cd3a 100644 (file)
@@ -1932,7 +1932,9 @@ mainproc(as, arock)
     if (afsd_debug)
        printf("%s: Calling AFSOP_VOLUMEINFO: volume info file is '%s'\n", rn,
               fullpn_VolInfoFile);
-    call_syscall(AFSOP_VOLUMEINFO, fullpn_VolInfoFile);
+    /* once again, meaningless for a memory-based cache. */
+    if (!(cacheFlags & AFSCALL_INIT_MEMCACHE)) 
+       call_syscall(AFSOP_VOLUMEINFO, fullpn_VolInfoFile);
 
     /*
      * Pass the kernel the name of the afs logging file holding the volume