From nobody@FreeBSD.org  Mon Oct 31 07:33:07 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 885F216A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 31 Oct 2005 07:33:07 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 579F443D45
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 31 Oct 2005 07:33:07 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j9V7X7CP074645
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 31 Oct 2005 07:33:07 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j9V7X70S074644;
	Mon, 31 Oct 2005 07:33:07 GMT
	(envelope-from nobody)
Message-Id: <200510310733.j9V7X70S074644@www.freebsd.org>
Date: Mon, 31 Oct 2005 07:33:07 GMT
From: Niki Denev <nike_d@cytexbg.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: smbfs does not implement UIO_NOCOPY and sendfile(2) on smbfs mounted files fails
X-Send-Pr-Version: www-2.3

>Number:         88266
>Category:       kern
>Synopsis:       [smbfs] smbfs does not implement UIO_NOCOPY and sendfile(2) on smbfs mounted files fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-fs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 31 07:40:07 GMT 2005
>Closed-Date:    Mon Dec 24 22:32:07 UTC 2012
>Last-Modified:  Mon Dec 24 22:32:07 UTC 2012
>Originator:     Niki Denev
>Release:        5.4-STABLE and 6.0-RC1
>Organization:
>Environment:
FreeBSD tormentor.totalterror.net 6.0-RC1 FreeBSD 6.0-RC1 #0: Sun Oct 30 18:19:53 EET 2005     root@tormentor.totalterror.net:/usr/src/sys/i386/compile/SMP  i386
>Description:
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.

>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.

>Fix:
none
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon May 18 04:22:40 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88266 

From: Nikolay Denev <ndenev@gmail.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/88266: [smbfs] smbfs does not implement UIO_NOCOPY and sendfile(2) on smbfs mounted files fails
Date: Mon, 24 Dec 2012 13:41:32 +0200

 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>
 
State-Changed-From-To: open->closed 
State-Changed-By: eadler 
State-Changed-When: Mon Dec 24 22:32:06 UTC 2012 
State-Changed-Why:  
Per submitter request 

http://www.freebsd.org/cgi/query-pr.cgi?pr=88266 
>Unformatted:
