public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Trond Myklebust <trond.myklebust@fys.uio.no>
To: Richard Bouska <richard@bouska.cz>
Cc: linux-kernel@vger.kernel.org
Subject: Re: NFS mountned  directory  and apache2 (2.5.47)
Date: 15 Nov 2002 19:10:27 +0100	[thread overview]
Message-ID: <shsisyyzoto.fsf@helicity.uio.no> (raw)
In-Reply-To: <3DD4CB81.1050704@bouska.cz>

>>>>> " " == 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,
 };
 
 /* 

  reply	other threads:[~2002-11-15 18:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-15 10:25 NFS mountned directory and apache2 (2.5.47) Richard Bouska
2002-11-15 18:10 ` Trond Myklebust [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-11-15 18:19 Petr Vandrovec
2002-11-15 20:16 ` Trond Myklebust
2002-11-15 20:26   ` Christoph Hellwig
2002-11-15 20:53     ` Trond Myklebust
2002-11-16  4:44       ` Christoph Hellwig
2002-11-17 20:18         ` Trond Myklebust
2002-11-15 21:10     ` Linus Torvalds

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=shsisyyzoto.fsf@helicity.uio.no \
    --to=trond.myklebust@fys.uio.no \
    --cc=linux-kernel@vger.kernel.org \
    --cc=richard@bouska.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox