Hello,
I added the following modifications to OpenAFS-1.4.7pre2
reported on the list:
--- openafs-1.4.7pre2/src/afs/LINUX/osi_vnodeops.c.orig Wed Mar 26 05:17:32 2008
+++ openafs-1.4.7pre2/src/afs/LINUX/osi_vnodeops.c      Thu Apr  3 14:30:36 2008
@@ -570,8 +570,10 @@
 
     AFS_GLOCK();
 
-    if (fp->f_flags | O_RDONLY)     /* readers dont flush */
+    if ((fp->f_flags & O_ACCMODE) == O_RDONLY) {
+        AFS_GUNLOCK();
        return 0;
+    }
 
     credp = crref();
     vcp = VTOAFS(FILE_INODE(fp));

and the OpenAFS client does not show any problems with
        linux-2.6.24.4
        gcc-4.2.3
on a i386 system.

HW

-- 
Hans-Werner Paulsen             [EMAIL PROTECTED]
MPI für Astrophysik             Tel 089-30000-2602
Karl-Schwarzschild-Str. 1       Fax 089-30000-2235      
D-85741 Garching
_______________________________________________
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info

Reply via email to