lkml.org 
[lkml]   [2002]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: NFS mountned directory and apache2 (2.5.47)
From
Date
>>>>> " " == 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/
\
 
 \ /
  Last update: 2005-03-22 13:31    [W:0.099 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site