From owner-freebsd-bugs Sun Dec 30 7: 0:20 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C8C9F37B447 for ; Sun, 30 Dec 2001 07:00:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBUF03m38142; Sun, 30 Dec 2001 07:00:03 -0800 (PST) (envelope-from gnats) Date: Sun, 30 Dec 2001 07:00:03 -0800 (PST) Message-Id: <200112301500.fBUF03m38142@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Sheldon Hearn Subject: Re: bin/31692: ntfs and sendfile problem (corrupted data) Reply-To: Sheldon Hearn Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/31692; it has been noted by GNATS. From: Sheldon Hearn To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: bin/31692: ntfs and sendfile problem (corrupted data) Date: Sun, 30 Dec 2001 16:56:22 +0200 Followup confirming that the problem is sendfile(2)-specific. Ciao, Sheldon. ----- Original Message ----- Date: Sun, 30 Dec 2001 15:47:45 +0100 (CET) From: Michal Mertl To: Sheldon Hearn cc: current@freebsd.org Subject: Re: ntfs and sendfile problem (corrupted data) > On Sun, 30 Dec 2001, Sheldon Hearn wrote: > > > > > > > On Sun, 30 Dec 2001 01:53:08 +0100, Michal Mertl wrote: > > > > > I have ntfs partition mounted ro on current. I can read from it without > > > problems. But I noticed I get corrupted data (the corrupted file has > > > right size but contains mostly zeros) when using ftpd to read them. > > > > > > I'm pretty sure the problem is thus in sendfile(2) and/or ntfs fs support. > > > > See also PR bin/31692, which reports simmilar problems using ftpd and > > smbfs. See my request for feedback, which ought to help verify that > > it's sendfile(2) causing the problem. > > > > I did use the "goto oldway;" and the problem went away. I tried to look at > /sys/kern/uipc_syscalls.c sendfile implementation but it is too complex > for me :-(. I tried ktrace on ftpd but only saw the call to sendfile(2). > If you give me some guidance I can try to look into problem deeper. I > don't have any experience in kernel debugging but would like to learn it. > > > > > Ciao, > > Sheldon. > > > > -- > Michal Mertl > mime@traveller.cz > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message