From a5dc4dbeb8e0b6441dd96ff20dedbfab26711445 Mon Sep 17 00:00:00 2001 From: alfred Date: Sat, 22 Nov 2003 02:21:49 +0000 Subject: Use function pointers to remove the depenancy cross dependancy on nfs4 and the nfs3 client. Also fix some bugs that happen to be causing crashes in both v3 and v4 introduced by the v4 import. Submitted by: Jim Rees Approved by: re --- sys/nfsclient/nfs.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'sys/nfsclient/nfs.h') diff --git a/sys/nfsclient/nfs.h b/sys/nfsclient/nfs.h index c96112a..e10a548 100644 --- a/sys/nfsclient/nfs.h +++ b/sys/nfsclient/nfs.h @@ -215,6 +215,20 @@ extern TAILQ_HEAD(nfs_reqq, nfsreq) nfs_reqq; #define R_GETONEREP 0x80 /* Probe for one reply only */ /* + * Pointers to ops that differ from v3 to v4 + */ +struct nfs_rpcops { + int (*nr_readrpc)(struct vnode *vp, struct uio *uiop, struct ucred *cred); + int (*nr_writerpc)(struct vnode *vp, struct uio *uiop, struct ucred *cred, + int *iomode, int *must_commit); + int (*nr_writebp)(struct buf *bp, int force, struct thread *td); + int (*nr_readlinkrpc)(struct vnode *vp, struct uio *uiop, struct ucred *cred); + void (*nr_invaldir)(struct vnode *vp); + int (*nr_commit)(struct vnode *vp, u_quad_t offset, int cnt, + struct ucred *cred, struct thread *td); +}; + +/* * Defines for WebNFS */ -- cgit v1.1