From owner-cvs-src@FreeBSD.ORG Thu Jan 27 13:50:28 2005 Return-Path: Delivered-To: cvs-src@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 Date: Thu, 27 Jan 2005 13:50:28 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/fs/ntfs ntfs_subr.c ntfs_vfsops.c ntfs_vnops.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 13:50:28 -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