Recent NTFS bug

Matthew Dillon dillon at apollo.backplane.com
Wed Aug 18 17:33:24 PDT 2004


:
:When trying to mount NTFS parititions now....
:
:Fatal trap 12: page fault while in kernel mode
:..
:..
:..
:kernel: type 12 trap, code=0
:stopped at vop_createvobject+0x23: movl 0x1d4(%ecx),%eax

    Ok, I committed a fix (rev 1.20 of /usr/src/sys/vfs/ntfs/ntfs_vfsops.c),
    the patch is also included below.  Try it and tell us if it solves
    the problem.

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>

Index: ntfs_vfsops.c
===================================================================
RCS file: /cvs/src/sys/vfs/ntfs/ntfs_vfsops.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- ntfs_vfsops.c	17 Aug 2004 18:57:34 -0000	1.19
+++ ntfs_vfsops.c	19 Aug 2004 00:30:07 -0000	1.20
@@ -26,7 +26,7 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/sys/ntfs/ntfs_vfsops.c,v 1.20.2.5 2001/12/25 01:44:45 dillon Exp $
- * $DragonFly: src/sys/vfs/ntfs/ntfs_vfsops.c,v 1.19 2004/08/17 18:57:34 dillon Exp $
+ * $DragonFly: src/sys/vfs/ntfs/ntfs_vfsops.c,v 1.20 2004/08/19 00:30:07 dillon Exp $
  */
 
 
@@ -509,6 +509,8 @@
 		(ntmp->ntm_flag & NTFS_MFLAG_ALLNAMES)?" allnames,":"",
 		ntmp->ntm_uid, ntmp->ntm_gid, ntmp->ntm_mode));
 
+	vfs_add_vnodeops(&mp->mnt_vn_ops, ntfs_vnodeop_entries);
+
 	/*
 	 * We read in some system nodes to do not allow 
 	 * reclaim them and to have everytime access to them.
@@ -599,8 +601,6 @@
 	mp->mnt_flag |= MNT_LOCAL;
 	dev->si_mountpoint = mp;
 
-	vfs_add_vnodeops(&mp->mnt_vn_ops, ntfs_vnodeop_entries);
-
 	return (0);
 
 out1:





More information about the Bugs mailing list