From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 8 19:30:52 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D348D16A4CE for ; Sat, 8 Nov 2003 19:30:52 -0800 (PST) Received: from mail.speakeasy.net (mail6.speakeasy.net [216.254.0.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5D1143FEC for ; Sat, 8 Nov 2003 19:30:51 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 12218 invoked from network); 9 Nov 2003 03:30:51 -0000 Received: from unknown (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail6.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 9 Nov 2003 03:30:51 -0000 Received: from hydrogen.funkthat.com (ncvkbc@localhost.funkthat.com [127.0.0.1])hA93UfgP083175; Sat, 8 Nov 2003 19:30:43 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id hA93URVI083085; Sat, 8 Nov 2003 19:30:27 -0800 (PST) Date: Sat, 8 Nov 2003 19:30:26 -0800 From: John-Mark Gurney To: Igor Sysoev Message-ID: <20031109033026.GF558@funkthat.com> Mail-Followup-To: Igor Sysoev , Mike Silbersack , freebsd-hackers@freebsd.org, Vivek Pai , Alan Cox References: <20031105022737.J1370@odysseus.silby.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-hackers@freebsd.org cc: Vivek Pai cc: Alan Cox Subject: Re: Update: Debox sendfile modifications X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Nov 2003 03:30:52 -0000 Igor Sysoev wrote this message on Wed, Nov 05, 2003 at 12:31 +0300: > I think it can done in the following way - a socket should have flag > that says that sendfile() had started the reading a page. layer violation... how do you know that the fd is a socket? > select()/poll()/kevent() should check this flag before the checking > a socket buffer space. When the page had been read this flag is reset. So, what about using sendfile on a pipe? are you going to teach sendfile how to interact with pipe's too? What about other fd types? If you made this a fd transparent operation then I would agree with it. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."