From owner-freebsd-stable@FreeBSD.ORG Sat Oct 29 06:07:22 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C837A16A41F for ; Sat, 29 Oct 2005 06:07:22 +0000 (GMT) (envelope-from nike_d@cytexbg.com) Received: from mail.interbgc.com (mx01.interbgc.com [217.9.224.225]) by mx1.FreeBSD.org (Postfix) with SMTP id CBD2843D46 for ; Sat, 29 Oct 2005 06:07:21 +0000 (GMT) (envelope-from nike_d@cytexbg.com) Received: (qmail 49699 invoked from network); 29 Oct 2005 06:07:19 -0000 Received: from nike_d@cytexbg.com by keeper.interbgc.com by uid 1002 with qmail-scanner-1.14 (uvscan: v4.2.40/v4374. spamassassin: 2.63. Clear:SA:0(-2.6/8.0):. Processed in 1.821655 secs); 29 Oct 2005 06:07:19 -0000 X-Spam-Status: No, hits=-2.6 required=8.0 Received: from 213-240-205-57.1697748.ddns.cablebg.net (HELO tormentor.totalterror.net) (213.240.205.57) by mx01.interbgc.com with SMTP; 29 Oct 2005 06:07:17 -0000 Received: (qmail 67975 invoked from network); 29 Oct 2005 06:07:17 -0000 Received: from qmail by qscan (mail filter); 29 Oct 2005 06:07:17 +0000 Received: from unknown (HELO ?10.0.0.3?) (10.0.0.3) by tormentor.totalterror.net with SMTP; 29 Oct 2005 06:07:17 -0000 Message-ID: <436311C2.6090708@cytexbg.com> Date: Sat, 29 Oct 2005 09:08:02 +0300 From: Niki Denev User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable@freebsd.org X-Enigmail-Version: 0.92.1.0 OpenPGP: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: sendfile + non local filesystem + lighttpd = EOPNOTSUPP X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Oct 2005 06:07:22 -0000 Hello, I seem to have a problem serving files with lighttpd from non local (smbfs) filesystem. Lighttpd tries to use sendfile(2) but, it returns with -1 and errno "Operation not supported", but i can't find this error in the documented errors on the manpage. Forcing lighttpd to not use sendfile fixes the problem, but i would really like to use it... Any suggestions? ----- 40793 lighttpd CALL open(0x8089c80,0,0x80bac00) 40793 lighttpd NAMI "/usr/local/www/data/stuff/downloads/some_file.txt" 40793 lighttpd RET open 8 40793 lighttpd CALL sendfile(0x8,0x7,0,0,0x1b22,0,0xbfbfc600,0) 40793 lighttpd RET sendfile -1 errno 45 Operation not supported 40793 lighttpd CALL write(0x6,0x8089400,0x5d) 40793 lighttpd GIO fd 6 wrote 93 bytes "2005-10-29 08:43:09: (network_freebsd_sendfile.c.174) sendfile: Operation not supported 45 " 40793 lighttpd RET write 93/0x5d 40793 lighttpd CALL close(0x8) Here /usr/local/www/data/stuff/downloads is a smbfs mount. If the file is local everything works as expected. --niki