Re: panic: Inconsistent vnode bufstrategy

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Sun, 12 Dec 2004 11:57:25 +0100
In message <41B48316.90004_at_club-internet.fr>, =?ISO-8859-1?Q?Jean-S=E9bastien_P
=E9dron?= writes:

>Cc'd to phk, he surely know the internals better than me :-)

Can somebody try this patch and let me know if it works ?

==== //depot/user/phk/phk_bufwork/sys/fs/ntfs/ntfs_vnops.c#8 - /bang/p4/phk/phk_bufwork/sys/fs/ntfs/ntfs_vnops.c ====
_at__at_ -97,9 +97,14 _at__at_
 		int *a_runb;
 	} */ *ap;
 {
+	struct vnode *vp = ap->a_vp;
+	struct fnode *fp = VTOF(vp);
+	struct ntnode *ip = FTONT(fp);
+	struct ntfsmount *ntmp = ip->i_mp;
+
 	dprintf(("ntfs_bmap: vn: %p, blk: %d\n", ap->a_vp,(u_int32_t)ap->a_bn));
 	if (ap->a_bop != NULL)
-		*ap->a_bop = &ap->a_vp->v_bufobj;
+		*ap->a_bop = &ntmp->ntm_devvp->v_bufobj;
 	if (ap->a_bnp != NULL)
 		*ap->a_bnp = ap->a_bn;
 	if (ap->a_runp != NULL)


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
Received on Sun Dec 12 2004 - 09:57:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:24 UTC