From owner-cvs-all@FreeBSD.ORG Sun Jul 3 01:11:30 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F95916A8FF; Sun, 3 Jul 2005 00:58:44 +0000 (GMT) (envelope-from ps@mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44FD74474F; Sun, 3 Jul 2005 00:43:37 +0000 (GMT) (envelope-from ps@mu.org) Received: by elvis.mu.org (Postfix, from userid 1000) id A87BD6DDB7; Sat, 2 Jul 2005 17:38:20 -0700 (PDT) X-Original-To: ps@mu.org Delivered-To: ps@mu.org Received: from mx2.freebsd.org (mx2.freebsd.org [216.136.204.119]) by elvis.mu.org (Postfix) with ESMTP id AAFC05C9FA for ; Thu, 27 Jan 2005 05:50:35 -0800 (PST) Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 5444D574CD for ; Thu, 27 Jan 2005 13:50:35 +0000 (GMT) (envelope-from owner-src-committers@FreeBSD.org) Received: by hub.freebsd.org (Postfix) id C0B1516A4E7; Thu, 27 Jan 2005 13:50:30 +0000 (GMT) Delivered-To: ps@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 538) id 7B4B316A4D0; Thu, 27 Jan 2005 13:50:29 +0000 (GMT) Delivered-To: src-committers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F34416A4CE; Thu, 27 Jan 2005 13:50:28 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38FC443D1D; Thu, 27 Jan 2005 13:50:28 +0000 (GMT) (envelope-from peadar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j0RDoShd035350; Thu, 27 Jan 2005 13:50:28 GMT (envelope-from peadar@repoman.freebsd.org) Received: (from peadar@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j0RDoSuA035349; Thu, 27 Jan 2005 13:50:28 GMT (envelope-from peadar) Message-Id: <200501271350.j0RDoSuA035349@repoman.freebsd.org> From: Peter Edwards To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Sender: owner-src-committers@FreeBSD.org Precedence: bulk X-Loop: FreeBSD.ORG X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on elvis.mu.org X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.1 X-Spam-Level: Cc: Subject: cvs commit: src/sys/fs/ntfs ntfs_subr.c ntfs_vfsops.c ntfs_vnops.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Sun, 03 Jul 2005 01:11:30 -0000 X-Original-Date: Thu, 27 Jan 2005 13:50:28 +0000 (UTC) X-List-Received-Date: Sun, 03 Jul 2005 01:11:30 -0000 peadar 2005-01-27 13:50:28 UTC FreeBSD src repository Modified files: sys/fs/ntfs ntfs_subr.c ntfs_vfsops.c ntfs_vnops.c Log: Make NTFS at least minimally usable after bufobj and GEOM fallout. mmap() on NTFS files was hosed, returning pages offset from the start of the disk rather than the start of the file. (ie, "cp" of a 1-block file would get you a copy of the boot sector, not the data in the file.) The solution isn't ideal, but gives a functioning filesystem. Cached vnode lookup was also broken, resulting in vnode haemorrhage. A lookup on the same file twice would give you two vnodes, and the resulting cached pages. Just recently, mmap() was broken due to a lack of a call to vnode_create_vobject() in ntfs_open(). Discussed with: phk@ Revision Changes Path 1.36 +1 -0 src/sys/fs/ntfs/ntfs_subr.c 1.76 +31 -1 src/sys/fs/ntfs/ntfs_vfsops.c 1.50 +3 -4 src/sys/fs/ntfs/ntfs_vnops.c