[OpenAFS] clarification on client caches

Nickolai Zeldovich kolya@MIT.EDU
Thu, 09 Sep 2004 16:46:14 -0700

On Thu, 2004-09-09 at 19:24 -0400, Wes Chow wrote:
> I had some problems applying the patch (is it to 1.2.11?), so I hand
> applied things.  There were a few other random references to those
> variables I had to fix, as well as defining AFS_64BIT_ENV.

Yeah, it was against the CVS head, I forgot to mention that.

> The problem I'm having now is:
> base:/lib/modules/2.4.27-afs64/fs# depmod -a -e
> depmod: *** Unresolved symbols in /lib/modules/2.4.27-afs64/fs/openafs.mp.o
> depmod:         __divdi3
> Any clue how I might be able to resolve this?

One way to do that is to extract __divdi3 from libgcc and link it into
your openafs module.

  cd /tmp
  ar x /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/libgcc.a _divdi3.oS
  ld -r -o libafs-new.o _divdi3.oS /lib/modules/2.4.27-afs64/fs/openafs.mp.o

and then try to load /tmp/libafs-new.o as your kernel module.
Substitute the appropriate paths for libgcc.a and openafs.mp.o as

-- kolya