PERFORCE change 154707 for review
Bjoern A. Zeeb
bz at FreeBSD.org
Mon Dec 15 08:22:07 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=154707
Change 154707 by bz at 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
More information about the p4-projects
mailing list