Coda File System

[PATCH for 5.3.1] Truncating a file while disconnected.

From: Jan Harkes <jaharkes_at_cs.cmu.edu>
Date: Thu, 9 Sep 1999 17:03:14 -0400
Hi everyone,

Satya discovered a fatal bug in 5.3.1. Which causes venus to crash when
truncating a file in disconnected mode. The patch that fixes it is
appended to the end of this email. I only compiled an updated rpm for
the client and placed it on ftp.coda.cs.cmu.edu as:

/pub/coda/linux/i386/coda-debug-client-5.3.1-2.i386.rpm
                                             ^--notice the release #

There are currently no prebuild binaries with this fix applied for other
platforms.

Jan

======================================================================
--- coda-5.3.1/coda-src/venus/fso_cfscalls0.cc.orig Thu Aug 26 18:12:02 1999
+++ coda-5.3.1/coda-src/venus/fso_cfscalls0.cc	Thu Sep  9 15:52:59 1999
@@ -1611,7 +1611,6 @@
 	    data.file = &cf;
 	    data.file->Truncate((unsigned) NewLength);
 	    Recov_EndTrans(MAXFP);
-	    SetRcRights(RC_STATUS | RC_DATA);
 	}
 	
 	/* Avoid performing action where possible. */
Received on 1999-09-09 17:04:27