arlad bug

Love lha at stacken.kth.se
Mon Dec 4 23:44:01 CET 2000


Nickolai Zeldovich <kolya at mit.edu> writes:

> Ran into a bug in the latest CVS version of arlad/arla-cli earlier
> today; here, /afs/.root.afs is a RW mountpoint for root.afs; arlad
> and arla-cli crash when you try to "stat" /afs/.root.afs/.root.afs.
> More details below.

Do you have arlad/inter.c:1.110 ? Since that I think fixed the problem with
arlad crashing. For the arla-cli problem, the patch below fixed the
problem for me.

Love

Index: arla-cli.c
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/arlad/arla-cli.c,v
retrieving revision 1.6
diff -u -w -u -w -r1.6 arla-cli.c
--- arlad/arla-cli.c  2000/11/28 01:51:47     1.6
+++ arlad/arla-cli.c  2000/12/04 22:38:46
@@ -282,6 +282,10 @@
        printf ("follow %s: %d\n", name, ret);
        return;
     }
+
+    /* Have we follow a mountpoint to ourself ? */
+    if (VenusFid_cmp(fid, dir_fid) == 0)
+       return;
 
     res = cm_getattr (*fid, &status, &realfid, context->ce, &ae);
     if (res.res) {
 





More information about the Arla-drinkers mailing list