Date: Sun, 12 Dec 2004 11:57:25 +0100 From: "Poul-Henning Kamp" <phk@phk.freebsd.dk> To: =?ISO-8859-1?Q?Jean-S=E9bastien_P=E9dron?= <jspedron@club-internet.fr> Cc: freebsd-current@freebsd.org Subject: Re: panic: Inconsistent vnode bufstrategy Message-ID: <11310.1102849045@critter.freebsd.dk> In-Reply-To: Your message of "Mon, 06 Dec 2004 17:04:38 %2B0100." <41B48316.90004@club-internet.fr>
index | next in thread | previous in thread | raw e-mail
In message <41B48316.90004@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 ====
@@ -97,9 +97,14 @@
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@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.
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?11310.1102849045>
