From owner-freebsd-current Sun Dec 30 12:30:11 2001 Delivered-To: freebsd-current@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 4323837B405; Sun, 30 Dec 2001 12:30:09 -0800 (PST) Received: (from dillon@localhost) by apollo.backplane.com (8.11.6/8.9.1) id fBUKTcR16908; Sun, 30 Dec 2001 12:29:38 -0800 (PST) (envelope-from dillon) Date: Sun, 30 Dec 2001 12:29:38 -0800 (PST) From: Matthew Dillon Message-Id: <200112302029.fBUKTcR16908@apollo.backplane.com> To: Sheldon Hearn Cc: Michal Mertl , current@FreeBSD.ORG, bmilekic@FreeBSD.ORG Subject: Re: ntfs and sendfile problem (corrupted data) References: <91552.1009724501@axl.seasidesoftware.co.za> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Oops, sorry, that patch was for smbfs on -stable. Not -current. ntfs has a similar problem. It implements VOP_BMAP but fakes it, and ntfs_read() doesn't *USE* the buffer cache, so again sendfile() believes that a UIO_NOCOPY read will work when it won't. And, again there is no coherency. This is even worse then what smbfs() does. I think the solution for ntfs is the same as for smbfs... create a vop_createvobject tag that does not set VOBJBUF and, as with smbfs, this will cause mmap() to fail. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message