From: Frederik Eaton Subject: Re: sendfile Date: Tue, 7 Jun 2005 00:06:45 -0700 Message-ID: <20050607070645.GA6431@a5.repetae.net> References: <20050606062452.GB6951@a5.repetae.net> <42A412E2.500@tu-harburg.de> Reply-To: frederik@ofb.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: fsdevel Return-path: Received: from h34-aclarke.sv.meer.net ([205.217.153.34]:16006 "EHLO ofb3.ofb.net") by vger.kernel.org with ESMTP id S261478AbVFGHGx (ORCPT ); Tue, 7 Jun 2005 03:06:53 -0400 To: Jan Blunck Content-Disposition: inline In-Reply-To: <42A412E2.500@tu-harburg.de> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Mon, Jun 06, 2005 at 11:09:54AM +0200, Jan Blunck wrote: > Frederik Eaton wrote: > > > > Why was 'sendfile' changed in 2.6 to only accept a socket destination? > > (the man page doesn't explain) > > AFAIK it was because of big file->file sendfiles, which could easily > block the entire system. How could they block the system? Couldn't you send just as much data over a socket? > > If this restriction were removed, wouldn't the 'sendfile' system call > > also be useful as interface to copy-on-write filesystems? > > There are a few patches (sendfile part of the COW-Link patches from > Joern Engel, http://wohnheim.fh-wedel.de/~joern/cowlink/, and Alexander > Nybergs generic_file_sendpage() patch, > http://marc.theaimsgroup.com/?l=linux-kernel&m=108680821325052&w=2) > available. But I don't think the chances are high that Al will push them > into the mainstream kernel. Meaning they won't be incorporated ever, or yet? Frederik -- http://ofb.net/~frederik/