Deleted Added
full compact
nfsm_subs.h (88091) nfsm_subs.h (122698)
1/*
2 * Copyright (c) 1989, 1993
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 * @(#)nfsm_subs.h 8.2 (Berkeley) 3/30/95
1/*
2 * Copyright (c) 1989, 1993
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 * @(#)nfsm_subs.h 8.2 (Berkeley) 3/30/95
37 * $FreeBSD: head/sys/nfsclient/nfsm_subs.h 88091 2001-12-18 01:22:09Z iedowse $
37 * $FreeBSD: head/sys/nfsclient/nfsm_subs.h 122698 2003-11-14 20:54:10Z alfred $
38 */
39
40#ifndef _NFSCLIENT_NFSM_SUBS_H_
41#define _NFSCLIENT_NFSM_SUBS_H_
42
43#include <nfs/nfs_common.h>
44
45#define nfsv2tov_type(a) nv2tov_type[fxdr_unsigned(u_int32_t,(a))&0x7]

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

142 if (error != 0) { \
143 if (error & NFSERR_RETERR) \
144 error &= ~NFSERR_RETERR; \
145 else \
146 goto nfsmout; \
147 } \
148} while (0)
149
38 */
39
40#ifndef _NFSCLIENT_NFSM_SUBS_H_
41#define _NFSCLIENT_NFSM_SUBS_H_
42
43#include <nfs/nfs_common.h>
44
45#define nfsv2tov_type(a) nv2tov_type[fxdr_unsigned(u_int32_t,(a))&0x7]

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

142 if (error != 0) { \
143 if (error & NFSERR_RETERR) \
144 error &= ~NFSERR_RETERR; \
145 else \
146 goto nfsmout; \
147 } \
148} while (0)
149
150#define nfsm_request_mnt(n, t, p, c) \
151do { \
152 error = nfs4_request_mnt((n), mreq, (t), (p), (c), &mrep, &md, &dpos); \
153 if (error != 0) { \
154 if (error & NFSERR_RETERR) \
155 error &= ~NFSERR_RETERR; \
156 else \
157 goto nfsmout; \
158 } \
159} while (0)
160
150/* *********************************** */
151/* Reply interpretation phase macros */
152
153int nfsm_mtofh_xx(struct vnode *d, struct vnode **v, int v3, int *f,
154 struct mbuf **md, caddr_t *dpos);
155int nfsm_getfh_xx(nfsfh_t **f, int *s, int v3, struct mbuf **md,
156 caddr_t *dpos);
157int nfsm_loadattr_xx(struct vnode **v, struct vattr *va, struct mbuf **md,

--- 46 unchanged lines hidden ---
161/* *********************************** */
162/* Reply interpretation phase macros */
163
164int nfsm_mtofh_xx(struct vnode *d, struct vnode **v, int v3, int *f,
165 struct mbuf **md, caddr_t *dpos);
166int nfsm_getfh_xx(nfsfh_t **f, int *s, int v3, struct mbuf **md,
167 caddr_t *dpos);
168int nfsm_loadattr_xx(struct vnode **v, struct vattr *va, struct mbuf **md,

--- 46 unchanged lines hidden ---