Messages in this thread Patch in this message | | | Subject | Re: NFS mountned directory and apache2 (2.5.47) | From | Trond Myklebust <> | Date | 15 Nov 2002 19:10:27 +0100 |
| |
>>>>> " " == Richard Bouska <richard@bouska.cz> writes:
> Hello In 2.45.47 and 2.5.46 (at least) did not try any other am > I not able to serve files bigger than 255 bytes by apache2 from > nfs mounted directory. The local files are served correctly.
> The server is on 2.4.18. When I use the 2.4 also on client > everything works. When the content of the page is CGI generated > then the size is not limited like this.
> Both client and server are x86 (athlon) kernel compiled with: > gcc version 2.95.4 20011002 (Debian prerelease)
> sendfile() bug ??
Looks like whoever it was that changed the 'sendfile' API forgot to update NFS. Try the following patch.
Cheers, Trond
--- linux-2.5.47/fs/nfs/file.c.orig 2002-11-08 14:16:27.000000000 -0500 +++ linux-2.5.47/fs/nfs/file.c 2002-11-15 13:06:06.000000000 -0500 @@ -175,6 +175,7 @@ #ifdef CONFIG_NFS_DIRECTIO .direct_IO = nfs_direct_IO, #endif + .sendfile = generic_file_sendfile, }; /* - 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/
| |