From: "David Schwartz" <davids@webmaster.com>
To: "Pierre Etchemaite" <petchema@concept-micro.com>,
<linux-kernel@vger.kernel.org>
Subject: RE: tmpfs + sendfile bug ?
Date: Mon, 21 May 2001 11:49:40 -0700 [thread overview]
Message-ID: <NCBBLIEPOCNJOAEKBEAKCECOPDAA.davids@webmaster.com> (raw)
In-Reply-To: <XFMail.20010521183553.petchema@concept-micro.com>
> 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 ?
Looks like a bug in the program. If 'sendfile' returns 'EINVAL', that means
you can't use 'sendfile' to send this particular file, and should default to
read/write or mmap/write. If this program doesn't, it doesn't understand
Linux's 'sendfile' semantics.
DS
next prev parent reply other threads:[~2001-05-21 18:50 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
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 [this message]
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=NCBBLIEPOCNJOAEKBEAKCECOPDAA.davids@webmaster.com \
--to=davids@webmaster.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox