Several Different kernel related (?) problems

Matias Feliciano feliciano.matias at free.fr
Sun Aug 15 18:48:55 UTC 2004


Le dim 15/08/2004 à 16:14, Arjan van de Ven a écrit :
> > I gave kernel-smp-2.6.8-1.520 a test run on my desktop before putting it 
> > on the server, and the kernel crashes on boot with an NFS error. I guess 
> > that that won't be a problem on the server, as the server isn't an NFS 
> > client. I'm not sure if it's the same bug which caused the 2.6.8.1 release.
> 
> doubt it... 520 has that fix included

Are you sure ?

I just rebuild 520 with that patch (from 2.6.8.1) :
diff -Nru a/fs/nfs/file.c b/fs/nfs/file.c
--- a/fs/nfs/file.c     2004-08-14 03:56:28 -07:00
+++ b/fs/nfs/file.c     2004-08-14 03:56:28 -07:00
@@ -72,7 +72,7 @@
  
 static int nfs_check_flags(int flags)
 {
-       if (flags & (O_APPEND | O_DIRECT))
+       if ((flags & (O_APPEND | O_DIRECT)) == (O_APPEND | O_DIRECT))
                return -EINVAL;
  
        return 0;
@@ -89,7 +89,7 @@
        int res;
  
        res = nfs_check_flags(filp->f_flags);
-       if (!res)
+       if (res)
                return res;
  
        lock_kernel();


It applies and works perfectly :-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e.
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20040815/ca7d2bd5/attachment.sig>


More information about the fedora-devel-list mailing list