Deleted Added
sdiff udiff text old ( 138458 ) new ( 138496 )
full compact
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

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

25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * @(#)nfs.h 8.4 (Berkeley) 5/1/95
33 * $FreeBSD: head/sys/nfsclient/nfs.h 138496 2004-12-06 21:11:15Z ps $
34 */
35
36#ifndef _NFSCLIENT_NFS_H_
37#define _NFSCLIENT_NFS_H_
38
39#ifdef _KERNEL
40#include "opt_nfs.h"
41#endif

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

85#define NFS_CMPFH(n, f, s) \
86 ((n)->n_fhsize == (s) && !bcmp((caddr_t)(n)->n_fhp, (caddr_t)(f), (s)))
87#define NFS_ISV3(v) (VFSTONFS((v)->v_mount)->nm_flag & NFSMNT_NFSV3)
88
89#define NFSSTA_HASWRITEVERF 0x00040000 /* Has write verifier for V3 */
90#define NFSSTA_GOTFSINFO 0x00100000 /* Got the V3 fsinfo */
91#define NFSSTA_SNDLOCK 0x01000000 /* Send socket lock */
92#define NFSSTA_WANTSND 0x02000000 /* Want above */
93#define NFSSTA_TIMEO 0x10000000 /* Experiencing a timeout */
94
95
96/*
97 * XXX to allow amd to include nfs.h without nfsproto.h
98 */
99#ifdef NFS_NPROCS
100#include <nfsclient/nfsstats.h>

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

144extern int nfsv3_procid[NFS_NPROCS];
145
146struct uio;
147struct buf;
148struct vattr;
149struct nameidata;
150
151/*
152 * Socket errors ignored for connectionless sockets??
153 * For now, ignore them all
154 */
155#define NFSIGNORE_SOERROR(s, e) \
156 ((e) != EINTR && (e) != EIO && \
157 (e) != ERESTART && (e) != EWOULDBLOCK && \
158 ((s) & PR_CONNREQUIRED) == 0)
159

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

301int nfsm_uiotombuf(struct uio *, struct mbuf **, int, caddr_t *);
302void nfs_clearcommit(struct mount *);
303int nfs_writebp(struct buf *, int, struct thread *);
304int nfs_fsinfo(struct nfsmount *, struct vnode *, struct ucred *,
305 struct thread *);
306int nfs_meta_setsize (struct vnode *, struct ucred *,
307 struct thread *, u_quad_t);
308
309void nfs_set_sigmask __P((struct thread *td, sigset_t *oldset));
310void nfs_restore_sigmask __P((struct thread *td, sigset_t *set));
311int nfs_tsleep __P((struct thread *td, void *ident, int priority, char *wmesg,
312 int timo));
313int nfs_msleep __P((struct thread *td, void *ident, struct mtx *mtx, int priority,
314 char *wmesg, int timo));
315
316#endif /* _KERNEL */
317
318#endif