Date: Mon, 15 Dec 2008 16:22:06 GMT From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 154707 for review Message-ID: <200812151622.mBFGM6Rn083759@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=154707 Change 154707 by bz@bz_dumpster on 2008/12/15 16:21:20 Add support for compiling with NFS_LEGACYRPC (untested). Does not help to avoid the panic in the !NFS_LEGACYRPC case. Affected files ... .. //depot/projects/vimage/src/sys/nfsclient/nfs_vnops.c#24 edit Differences ... ==== //depot/projects/vimage/src/sys/nfsclient/nfs_vnops.c#24 (text+ko) ==== @@ -1412,7 +1412,11 @@ if (v3) { tl = nfsm_build(u_int32_t *, NFSX_UNSIGNED); if (fmode & O_EXCL) { +#ifdef NFS_LEGACYRPC + CURVNET_SET(VFSTONFS(dvp->v_mount)->nm_so->so_vnet); +#else CURVNET_SET(VFSTONFS(dvp->v_mount)->nm_rpcclnt.rc_so->so_vnet); +#endif *tl = txdr_unsigned(NFSV3CREATE_EXCLUSIVE); tl = nfsm_build(u_int32_t *, NFSX_V3CREATEVERF); #ifdef INET
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812151622.mBFGM6Rn083759>