From 726b9f6de490ef938525cd35971e2572feb3b14f Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Mon, 31 Jan 2005 04:09:51 +0000 Subject: [PATCH] STABLE14-memcache-no-volitems-20050113 Don't try to open VolumeItems when using memcache (cherry picked from commit 1307b891888c61debe2eadd47ddfe8717fc75ddd) --- src/afsd/afsd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5