lkml.org 
[lkml]   [2001]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: tmpfs + sendfile bug ?
Date

> 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

-
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 12:53    [W:0.070 / U:3.968 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site