From: Derrick Brashear Date: Mon, 31 Jan 2005 04:09:51 +0000 (+0000) Subject: STABLE14-memcache-no-volitems-20050113 X-Git-Tag: openafs-devel-1_3_78~46 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=726b9f6de490ef938525cd35971e2572feb3b14f;p=packages%2Fo%2Fopenafs.git STABLE14-memcache-no-volitems-20050113 Don't try to open VolumeItems when using memcache (cherry picked from commit 1307b891888c61debe2eadd47ddfe8717fc75ddd) --- diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index 767913895..f8b23e952 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -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