Deleted Added
full compact
nfs.h (105563) nfs.h (122698)
1/*
2 * Copyright (c) 1989, 1993, 1995
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)nfs.h 8.4 (Berkeley) 5/1/95
1/*
2 * Copyright (c) 1989, 1993, 1995
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Rick Macklem at The University of Guelph.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 20 unchanged lines hidden (view full) ---

29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 * SUCH DAMAGE.
35 *
36 * @(#)nfs.h 8.4 (Berkeley) 5/1/95
37 * $FreeBSD: head/sys/nfsclient/nfs.h 105563 2002-10-20 21:40:55Z phk $
37 * $FreeBSD: head/sys/nfsclient/nfs.h 122698 2003-11-14 20:54:10Z alfred $
38 */
39
40#ifndef _NFSCLIENT_NFS_H_
41#define _NFSCLIENT_NFS_H_
42
43#ifdef _KERNEL
44#include "opt_nfs.h"
45#endif

--- 191 unchanged lines hidden (view full) ---

237 } while (0)
238
239#else
240
241#define NFS_DPF(cat, args)
242
243#endif
244
38 */
39
40#ifndef _NFSCLIENT_NFS_H_
41#define _NFSCLIENT_NFS_H_
42
43#ifdef _KERNEL
44#include "opt_nfs.h"
45#endif

--- 191 unchanged lines hidden (view full) ---

237 } while (0)
238
239#else
240
241#define NFS_DPF(cat, args)
242
243#endif
244
245/*
246 * File context information for nfsv4. Currently, there is only one
247 * lockowner for the whole machine "0."
248 */
249struct nfs4_fctx {
250 TAILQ_ENTRY(nfs4_fstate) next;
251
252 pid_t pid;
253 uint32_t refcnt;
254 struct nfs4_lowner *lop;
255 struct nfsnode *np;
256 char stateid[NFSX_V4STATEID];
257};
258
245vfs_init_t nfs_init;
246vfs_uninit_t nfs_uninit;
247int nfs_mountroot(struct mount *mp, struct thread *td);
259vfs_init_t nfs_init;
260vfs_uninit_t nfs_uninit;
261int nfs_mountroot(struct mount *mp, struct thread *td);
262
263#ifndef NFS4_USE_RPCCLNT
248int nfs_send(struct socket *, struct sockaddr *, struct mbuf *,
249 struct nfsreq *);
250int nfs_sndlock(struct nfsreq *);
251void nfs_sndunlock(struct nfsreq *);
264int nfs_send(struct socket *, struct sockaddr *, struct mbuf *,
265 struct nfsreq *);
266int nfs_sndlock(struct nfsreq *);
267void nfs_sndunlock(struct nfsreq *);
268#endif /* ! NFS4_USE_RPCCLNT */
269
252int nfs_vinvalbuf(struct vnode *, int, struct ucred *, struct thread *,
253 int);
254int nfs_readrpc(struct vnode *, struct uio *, struct ucred *);
255int nfs_writerpc(struct vnode *, struct uio *, struct ucred *, int *,
256 int *);
257int nfs_commit(struct vnode *vp, u_quad_t offset, int cnt,
258 struct ucred *cred, struct thread *td);
259int nfs_readdirrpc(struct vnode *, struct uio *, struct ucred *);

--- 6 unchanged lines hidden (view full) ---

266int nfs_request(struct vnode *, struct mbuf *, int, struct thread *,
267 struct ucred *, struct mbuf **, struct mbuf **, caddr_t *);
268int nfs_loadattrcache(struct vnode **, struct mbuf **, caddr_t *,
269 struct vattr *, int);
270int nfsm_mbuftouio(struct mbuf **, struct uio *, int, caddr_t *);
271void nfs_nhinit(void);
272int nfs_nmcancelreqs(struct nfsmount *);
273void nfs_timer(void*);
270int nfs_vinvalbuf(struct vnode *, int, struct ucred *, struct thread *,
271 int);
272int nfs_readrpc(struct vnode *, struct uio *, struct ucred *);
273int nfs_writerpc(struct vnode *, struct uio *, struct ucred *, int *,
274 int *);
275int nfs_commit(struct vnode *vp, u_quad_t offset, int cnt,
276 struct ucred *cred, struct thread *td);
277int nfs_readdirrpc(struct vnode *, struct uio *, struct ucred *);

--- 6 unchanged lines hidden (view full) ---

284int nfs_request(struct vnode *, struct mbuf *, int, struct thread *,
285 struct ucred *, struct mbuf **, struct mbuf **, caddr_t *);
286int nfs_loadattrcache(struct vnode **, struct mbuf **, caddr_t *,
287 struct vattr *, int);
288int nfsm_mbuftouio(struct mbuf **, struct uio *, int, caddr_t *);
289void nfs_nhinit(void);
290int nfs_nmcancelreqs(struct nfsmount *);
291void nfs_timer(void*);
292
274int nfs_connect(struct nfsmount *, struct nfsreq *);
275void nfs_disconnect(struct nfsmount *);
276void nfs_safedisconnect(struct nfsmount *);
277int nfs_getattrcache(struct vnode *, struct vattr *);
278int nfsm_strtmbuf(struct mbuf **, char **, const char *, long);
279int nfs_bioread(struct vnode *, struct uio *, int, struct ucred *);
280int nfsm_uiotombuf(struct uio *, struct mbuf **, int, caddr_t *);
281void nfs_clearcommit(struct mount *);
282int nfs_writebp(struct buf *, int, struct thread *);
283int nfs_fsinfo(struct nfsmount *, struct vnode *, struct ucred *,
284 struct thread *);
285int nfs_meta_setsize (struct vnode *, struct ucred *,
286 struct thread *, u_quad_t);
287
288#endif /* _KERNEL */
289
290#endif
293int nfs_connect(struct nfsmount *, struct nfsreq *);
294void nfs_disconnect(struct nfsmount *);
295void nfs_safedisconnect(struct nfsmount *);
296int nfs_getattrcache(struct vnode *, struct vattr *);
297int nfsm_strtmbuf(struct mbuf **, char **, const char *, long);
298int nfs_bioread(struct vnode *, struct uio *, int, struct ucred *);
299int nfsm_uiotombuf(struct uio *, struct mbuf **, int, caddr_t *);
300void nfs_clearcommit(struct mount *);
301int nfs_writebp(struct buf *, int, struct thread *);
302int nfs_fsinfo(struct nfsmount *, struct vnode *, struct ucred *,
303 struct thread *);
304int nfs_meta_setsize (struct vnode *, struct ucred *,
305 struct thread *, u_quad_t);
306
307#endif /* _KERNEL */
308
309#endif