Date: Sun, 30 Dec 2001 19:00:24 -0800 From: Terry Lambert <tlambert2@mindspring.com> To: Sheldon Hearn <sheldonh@starjuice.net> Cc: Michal Mertl <mime@traveller.cz>, current@freebsd.org Subject: Re: ntfs and sendfile problem (corrupted data) Message-ID: <3C2FD4C8.1447A97E@mindspring.com> References: <88088.1009714357@axl.seasidesoftware.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
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. FreeBSD -current uses "external" mbufs. Previous versions did not. It's the new mbuf code. Look at how it gets the things that it points to. The problem is that the references are transient, and it assumes they aren't. I don't have a ready fix. You can revert the sendfile code pretty easily to the 4.3 version. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C2FD4C8.1447A97E>