Bug 88266 - [smbfs] smbfs does not implement UIO_NOCOPY and sendfile(2) on smbfs mounted files fails
Summary: [smbfs] smbfs does not implement UIO_NOCOPY and sendfile(2) on smbfs mounted ...
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 5.4-STABLE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-fs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-31 07:40 UTC by Niki Denev
Modified: 2012-12-24 22:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niki Denev 2005-10-31 07:40:07 UTC
smbfs does not implement UIO_NOCOPY (zerocopy) and if receives request for 
such will return with error and set errno to EOPNOTSUPP, which was until now undocumented.
This means that many popular web and ftp servers which implement sendfile(2) could
have problems when serving files from smbfs mounts if they not have handling for 
this case and fallback to another method, but as the errno code was undocumented 
probably there are not much as of now.

Fix: 

none
How-To-Repeat: Mount some smbfs share to a directory that is served for example with the www/lighttpd port.
Trying to download them via http will result in 0 byte documents.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-05-18 05:22:40 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Over to maintainer(s).
Comment 2 Nikolay Denev 2012-12-24 11:41:32 UTC
This PR can be closed :

src/lib/libc/sys/sendfile.2
Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Oct 31 04:08:28 2005 UTC (7 years, 1 month ago) by jkoshy
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +5 -0 lines
Document the fact that sendfile(2)
 can EOPNOTSUPP if the underlying
filesystem for the file being transferred doesn't support UIO_NOCOPY.

Reported by:	Niki Denev <nike_d@cytexbg.com>
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2012-12-24 22:32:06 UTC
State Changed
From-To: open->closed

Per submitter request