problems aklog'ing while writing to AFS

Love lha at stacken.kth.se
Thu Dec 21 15:30:16 CET 2000


Nickolai Zeldovich <kolya at mit.edu> writes:

> As far as reproducing the bug, any time I try to unpack, say,
> the krb5 1.2.1 source tree into AFS, the number of resulting
> zero-length files ends up being a close estimate of the number
> of times I ran "krb524init -p afs/cell at REALM && aklog".

Does this patch avoid the problem ? I can't trigger the problem with it.

It's not a correct fix. install_attr() probably needs to be changed to
update the size of the file when it really have changed, or the kernel
needs to avoid changing the filesize when the user have changed it.

Love

Index: fcache.c
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/arlad/fcache.c,v
retrieving revision 1.307
diff -u -w -u -w -r1.307 fcache.c
--- arlad/fcache.c	2000/11/28 01:48:42	1.307
+++ arlad/fcache.c	2000/12/21 14:16:36
@@ -1483,8 +1483,10 @@
 	    if(ae[i].cred == cred->pag) {
 		ae[i].cred = ARLA_NO_AUTH_CRED;
 		ae[i].access = ANONE;
+#if 0
 		if (e->flags.kernelp)
 		    install_attr (e);
+#endif
 		break;
 	    }
     }






More information about the Arla-drinkers mailing list