From owner-freebsd-net@FreeBSD.ORG Fri Feb 3 15:35:48 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BAE816A420 for ; Fri, 3 Feb 2006 15:35:48 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63A4E43D48 for ; Fri, 3 Feb 2006 15:35:44 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.3/8.13.3) with ESMTP id k13FZc3I008902; Fri, 3 Feb 2006 18:35:39 +0300 (MSK) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.3/8.13.3/Submit) id k13FZbAa008891; Fri, 3 Feb 2006 18:35:38 +0300 (MSK) (envelope-from yar) Date: Fri, 3 Feb 2006 18:35:36 +0300 From: Yar Tikhiy To: Iassen Anadoliev Message-ID: <20060203153536.GA8675@comp.chem.msu.su> References: <43DB8EEA.6090006@mac.com> <20060130125746.GB44477@comp.chem.msu.su> <20060131145612.GE34373@comp.chem.msu.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i Cc: freebsd-net@freebsd.org Subject: Re: Ftpd problems X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2006 15:35:48 -0000 On Thu, Feb 02, 2006 at 04:56:26PM +0200, Iassen Anadoliev wrote: > Yar Tikhiy writes: > >> > >>We seem to have got a bug in sendfile(2). Besides bin/89100, there > >>is kern/92243 on it. The problem is rather unpleasant and it's in > >>the kernel, not in ftpd(8). > > > >Would you mind trying the attached kernel patch? Note that you'll > >need to rebuild the modules along with the kernel after applying the > >patch. Thanks in advance! > > Thanks for the patch it seems to work: > > fetch ftp://test:test@ibiza.korio.org/usr/src/test.zero > test.zero 100% of 4293 MB 4255 kBps > 00m00s > > >The patch is against HEAD. In case it fails to apply, just change > >the type of the 2nd argument to vnode_create_vobject from size_t to > >off_t in the .h and .c files -- that's the essence. > > uname -a > FreeBSD ibiza.ma3x.net 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Thu Feb 2 > 15:19:27 EET 2006 root@ibiza.ma3x.net:/usr/obj/usr/src/sys/STENLY i386 Thank you for testing my patch, now I'll do my best to get it into 6.1-RELEASE. -- Yar