All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Rohland <cr@sap.com>
To: Pierre Etchemaite <petchema@concept-micro.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: tmpfs + sendfile bug ?
Date: 21 May 2001 18:57:07 +0200	[thread overview]
Message-ID: <m3bsomwsgs.fsf@linux.local> (raw)
In-Reply-To: <XFMail.20010521183553.petchema@concept-micro.com>
In-Reply-To: <XFMail.20010521183553.petchema@concept-micro.com>

Hi Pierre,

On Mon, 21 May 2001, Pierre Etchemaite wrote:
> I just found a problem GETting a file stored in tmpfs using proftpd;
> I always get a "426 Transfer aborted. Data connection closed."
> 
> That could be a bug with tmpfs and sendfile in 2.4.5-pre4 :
> 
> [...]
> read(8, "%PDF-1.4\r%\342\343\317\323\r\n870 0 obj\r<< \r/L"..., 8192) = 8192
> shmat(11, 0x4cfe65, 0x3)                = 0xbffff4d4
> sendfile(11, 8, [0], 5045861)           = -1 EINVAL (Invalid argument)
> [...]
> 
> Any idea ?

That's probably the same reason why tmpfs and loopback do not work
together:

tmpfs does not provide the necessary functions for sendfile and lo:
readpage, prepare_write and commitwrite.

And I do not see a way how to provide readpage in tmpfs :-(

Greetings
		Christoph



  reply	other threads:[~2001-05-21 16:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-21 16:35 tmpfs + sendfile bug ? Pierre Etchemaite
2001-05-21 16:57 ` Christoph Rohland [this message]
2001-05-21 22:01   ` Linus Torvalds
     [not found]   ` <200105212201.PAA17247@penguin.transmeta.com>
2001-05-22  6:50     ` Christoph Rohland
2001-05-21 18:49 ` David Schwartz
2001-05-21 22:44   ` Pierre Etchemaite

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=m3bsomwsgs.fsf@linux.local \
    --to=cr@sap.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=petchema@concept-micro.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.