From owner-freebsd-bugs@FreeBSD.ORG Thu Apr 8 12:10:17 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8682F16A4CE for ; Thu, 8 Apr 2004 12:10:17 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7EEB243D54 for ; Thu, 8 Apr 2004 12:10:17 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i38JAHbv094430 for ; Thu, 8 Apr 2004 12:10:17 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i38JAH0A094429; Thu, 8 Apr 2004 12:10:17 -0700 (PDT) (envelope-from gnats) Date: Thu, 8 Apr 2004 12:10:17 -0700 (PDT) Message-Id: <200404081910.i38JAH0A094429@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: "Alex Wang" Subject: Re: kern/65300: Can't use sendfile(2) to download files in UDF DVD X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Alex Wang List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2004 19:10:17 -0000 The following reply was made to PR kern/65300; it has been noted by GNATS. From: "Alex Wang" To: , "ALEX" Cc: Subject: Re: kern/65300: Can't use sendfile(2) to download files in UDF DVD Date: Fri, 9 Apr 2004 03:06:33 +0800 This is a multi-part message in MIME format. ------=_NextPart_000_002E_01C41DDF.A9B7BD00 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable I guess the reason is the sendfile(2) get page by the file vp and offset = but the udf_read gives bread() device vp and sector. So the bread can't = get the same page with sendfile(). We should give bread file vp and offset. Then transfer into device vp = and logical block in udf_strategy.=20 ------=_NextPart_000_002E_01C41DDF.A9B7BD00 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
I guess the reason is the sendfile(2) = get page by=20 the file vp and offset but the udf_read gives bread() device vp and = sector. So=20 the bread can't get the same page with sendfile().
We should give bread file vp and = offset. Then=20 transfer into device vp and logical block in udf_strategy.=20
------=_NextPart_000_002E_01C41DDF.A9B7BD00--