[Vserver] sendile() fix for 2.1.0-rc11 on 2.6.14.4

From: Pallai Roland <dap_at_mail.index.hu>
Date: Tue 20 Dec 2005 - 23:07:09 GMT
Message-Id: <1135120029.31040.158.camel@localhost.localdomain>

Hi,

 vserver-2.1.0-rc11 has broken sendfile on 2.6.14.4 due to a pointless
check in do_sendfile(). here's the fix:

--- linux/fs/read_write.c~ 2005-12-20 23:43:22.000000000 +0100
+++ linux/fs/read_write.c 2005-12-20 23:47:22.000000000 +0100
@@ -776,9 +776,6 @@
         current->syscr++;
         current->syscw++;
 
- if (*ppos > max)
- retval = -EOVERFLOW;
-
 fput_out:
         fput_light(out_file, fput_needed_out);
 fput_in:

--
 dap
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Tue Dec 20 23:12:41 2005
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 20 Dec 2005 - 23:12:47 GMT by hypermail 2.1.8