lkml.org 
[lkml]   [2001]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: NFS Bug in 2.4.3?
"Thomas J. Baker" wrote:
>
> There is an NFS bug described here
>
> http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=30944
>
> that seems to have been known about for a while that is not fixed in
> 2.4.3. Is there something wrong with the patch that is discussed?

It works fine for me.

Note, however, the patch should be patched in order to work on the
2.4.2 kernel distributed with rh71.

--- linux-2.4.2-dir.dif Thu Mar 1 14:58:28 2001
+++ linux-2.4.2-dirRH71.dif Thu Apr 26 12:19:34 2001
@@ -111,13 +111,14 @@
diff -u --recursive --new-file linux-2.4.2-fh_align/fs/readdir.c
linux-2.4.2-dir/fs/readdir.c
--- linux-2.4.2-fh_align/fs/readdir.c Mon Dec 11 22:45:42 2000
+++ linux-2.4.2-dir/fs/readdir.c Thu Feb 22 10:47:49 2001
-@@ -315,7 +315,8 @@
+@@ -346,7 +346,9 @@
lastdirent = buf.previous;
if (lastdirent) {
struct linux_dirent64 d;
- d.d_off = file->f_pos;
++ /* d.d_off = file->f_pos; */
+ /* get the sign extension right */
+ d.d_off = (off_t)file->f_pos;
- copy_to_user(&lastdirent->d_off, &d.d_off,
sizeof(d.d_off));
error = count - buf.count;
- }
+ if (copy_to_user(&lastdirent->d_off, &d.d_off,
sizeof(d.d_off)))
+ error = -EFAULT;

(patch to a patch; hm...).

Mogens
--
Mogens Kjaer, Carlsberg Laboratory, Dept. of Chemistry
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
Email: mk@crc.dk Homepage: http://www.crc.dk
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.051 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site