Coda File System

Bug in 64bit-patches - patch attached

From: Michael Tautschnig <michael.tautschnig_at_zt-consulting.com>
Date: Tue, 17 Aug 2004 19:07:27 +0200 (CEST)
Hi!

I'm sorry, but my patches need to be patched - both user- and kernel-space
coda.h need to be patched:

--- include/coda.h      2004-08-17 19:00:30.711097152 +0200
+++ ../linux-2.6.8.1/include/linux/coda.h       2004-08-16
17:45:44.449909008 +0200
@@ -765,8 +765,8 @@
 #define PIOCPARM_MASK 0x0000ffff

 // convert 32-bit pointers etc. safely to u_int64_t - is there a better
way to do that?
-#define CONV_U_INT64_T(arg) ((((u_int64_t) arg) << ((sizeof(u_int64_t) -
sizeof(char*)) * 8)) \
-               >> ((sizeof(u_int64_t) - sizeof(char*)) * 8))
+#define CONV_U_INT64_T(arg) ((((u_int64_t) arg) << ((sizeof(u_int64_t) -
sizeof(arg)) * 8)) \
+               >> ((sizeof(u_int64_t) - sizeof(arg)) * 8))

 struct ViceIoctl {
         u_int64_t in;        /* Data to be transferred in */

Sorry,
Michael
Received on 2004-08-17 13:09:47