kern/59271: copying from ntfs panics -CURRENT

Tim Robbins tjr at freebsd.org
Fri Nov 14 17:26:55 PST 2003


Can you try this patch & let me know whether it helps? I can't reproduce the
panic on a 4.0 GB NTFS filesystem created by Windows 2003 Server, but the code
in question definitely looks buggy.


--- sys/vm/vnode_pager.c.old	Sat Nov 15 12:25:45 2003
+++ sys/vm/vnode_pager.c	Sat Nov 15 11:07:33 2003
@@ -478,7 +478,10 @@
 
 			/* do the input */
 			bp->b_iooffset = dbtob(bp->b_blkno);
-			VOP_SPECSTRATEGY(bp->b_vp, bp);
+			if (dp->v_type == VCHR)
+				VOP_SPECSTRATEGY(bp->b_vp, bp);
+			else
+				VOP_STRATEGY(bp->b_vp, bp);
 
 			/* we definitely need to be at splvm here */
 


More information about the freebsd-bugs mailing list