[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cfsd fixes



Hi,

  Below are included 2 patches that fix cfs build.
  I'm not commit this since I have serious problems when I was
testing it with files > ~600k.
  I don't know if this is related or not (i dont believe so since I've
seen mbufs going up like crazy and never going down in systat).
  After that load goes up slowly. The machine is locked.

  Federico.-

--- cfs_fh.c.orig	Sun Oct 31 16:07:18 1999
+++ cfs_fh.c	Sun Oct 31 16:06:29 1999
@@ -363,7 +363,7 @@
 
 
 static fh_u roothandle;
-cfs_fileid rootnode={1,0,"\0\0\0\0\0\0\0\0","/NOWHERE/null",NULL,NULL,0,NULL,NULL};/* fileid=1; should be unique */
+cfs_fileid rootnode={1,0,{0,0,0,0,0,0,0,0},{'/','N','O','W','H','E','R','E','/','n','u','l','l'},NULL,NULL,0,NULL,NULL};/* fileid=1; should be unique */
 nfstime roottime={0,0};
 
 static u_char magictest[8]={0x01,0x23,0x45,0x67,0x89,0xab,0xcd,0xef};
--- cfs_des.c.orig	Wed Mar 20 14:57:56 1996
+++ cfs_des.c	Sun Oct 31 16:15:22 1999
@@ -140,7 +140,10 @@
 	register key_offset;
 	int j,k;
 	static int lk= -1;
-	static char lastkey[4][8]={"xxxxxxx","xxxxxxx","xxxxxxx","xxxxxxx"};
+	static char lastkey[4][8]={
+	    {'x','x','x','x','x','x','x'}, {'x','x','x','x','x','x','x'},
+	    {'x','x','x','x','x','x','x'}, {'x','x','x','x','x','x','x'}
+	};
 	static char expanded_key[4][128];
 
 	/* now caches 4 session keys.  drops least recently added  */