fs does not work?

Naomaru Itoi itoi at eecs.umich.edu
Tue Jun 23 19:10:37 CEST 1998


Hello,

> Naomaru Itoi <itoi at eecs.umich.edu> writes:
> 
> >   if (!(rv = k_hasafs())){
> >     printf("no afs %d %d\n", rv, errno);
> >     exit -1;
> >   } else {
> >     printf("yes afs :)\n");
> >   }
> > 
> > This returns:
> > no afs 0 0
> > 
> > The return value and errno are both 0.  
> > 
> > 
> > What do you think is causing a problem?  
> 
> Are you sure that you linked with libkafs from kth-krb and not OpenBSD 2.2?
> 
> type 'ldd /usr/arla/bin/fs' to check that.

Yeah,
% ldd /usr/arla/bin/fs
/usr/arla/bin/fs:
        -ledit.0 => /usr/lib/libedit.so.0.0 (0x40033000)
        -ltermcap.0 => /usr/lib/libtermcap.so.0.0 (0x40044000)
        -lkafs.0 => /usr/athena/lib/libkafs.so.0.9.8 (0x40046000)
        -lkrb.0 => /usr/athena/lib/libkrb.so.0.9.8 (0x40049000)
        -ldes.0 => /usr/athena/lib/libdes.so.0.9.8 (0x4005c000)
        -lkvm.4 => /usr/lib/libkvm.so.4.1 (0x4006a000)
        -lc.18 => /usr/lib/libc.so.18.0 (0x4006f000)

And for my program,
% ldd readx
readx:
        -lkafs.0 => /usr/athena/lib/libkafs.so.0.9.8 (0x40019000)
        -lc.18 => /usr/lib/libc.so.18.0 (0x4001c000)

> And make sure you have the kernel module loaded.

Arla is working for other part, e.g. I can read or write files, so I
assume the kernel module is loaded correctly?

I will look into k_hasafs() code. 

> btw. upgrade to 2.3 (and buy a CD). ;)

I'm a poor student ... :)

But do you think this does not happen in OpenBSD-2.3?  Then maybe I
should buy one ... 

Thanks a lot.

--
Concentration .. Naomaru Itoi





More information about the Arla-drinkers mailing list