summaryrefslogtreecommitdiffstats
path: root/sys/nfs4client/nfs4m_subs.h
blob: 534c8366700ffb7e9098c2c9de2ac4a4e4fe89c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
/* $FreeBSD$ */
/* $Id: nfs4m_subs.h,v 1.36 2003/11/05 14:59:01 rees Exp $ */

/*
 * copyright (c) 2003
 * the regents of the university of michigan
 * all rights reserved
 * 
 * permission is granted to use, copy, create derivative works and redistribute
 * this software and such derivative works for any purpose, so long as the name
 * of the university of michigan is not used in any advertising or publicity
 * pertaining to the use or distribution of this software without specific,
 * written prior authorization.  if the above copyright notice or any other
 * identification of the university of michigan is included in any copy of any
 * portion of this software, then the disclaimer below must also be included.
 * 
 * this software is provided as is, without representation from the university
 * of michigan as to its fitness for any purpose, and without warranty by the
 * university of michigan of any kind, either express or implied, including
 * without limitation the implied warranties of merchantability and fitness for
 * a particular purpose. the regents of the university of michigan shall not be
 * liable for any damages, including special, indirect, incidental, or
 * consequential damages, with respect to any claim arising out of or in
 * connection with the use of the software, even if it has been or is hereafter
 * advised of the possibility of such damages.
 */

#ifndef _NFS4CLIENT_NFSM4_SUBS_H
#define _NFS4CLIENT_NFSM4_SUBS_H

void nfsm_v4init(void);

void nfsm_buildf_xx(struct mbuf **mb, caddr_t *bpos, char *fmt, ...);
int nfsm_dissectf_xx(struct mbuf **md, caddr_t *dpos, char *fmt, ...);

int nfsm_v4build_compound_xx(struct nfs4_compound *, char *,
        struct mbuf **, caddr_t *);
int nfsm_v4build_putfh_xx(struct nfs4_compound *, struct vnode *,
        struct mbuf **, caddr_t *);
int nfsm_v4build_putfh_nv_xx(struct nfs4_compound *, struct nfs4_oparg_getfh *,
        struct mbuf **, caddr_t *);
int nfsm_v4build_getattr_xx(struct nfs4_compound *, struct nfs4_oparg_getattr *,
        struct mbuf **, caddr_t *);
int nfsm_v4build_finalize_xx(struct nfs4_compound *, struct mbuf **, caddr_t *);
int nfsm_v4build_getfh_xx(struct nfs4_compound *, struct nfs4_oparg_getfh *,
        struct mbuf **, caddr_t *);
int nfsm_v4build_lookup_xx(struct nfs4_compound *, struct nfs4_oparg_lookup *,
        struct mbuf **, caddr_t *);
int nfsm_v4build_setclientid_xx(struct nfs4_compound *,
        struct nfs4_oparg_setclientid *, struct mbuf **, caddr_t *);
int nfsm_v4build_setclientid_confirm_xx(struct nfs4_compound *,
        struct nfs4_oparg_setclientid *, struct mbuf **, caddr_t *);
int nfsm_v4build_close_xx(struct nfs4_compound *, struct nfs4_fctx *,
        struct mbuf **, caddr_t *);
int nfsm_v4build_access_xx(struct nfs4_compound *, struct nfs4_oparg_access *,
        struct mbuf **, caddr_t *);
int nfsm_v4build_open_xx(struct nfs4_compound *, struct nfs4_oparg_open *,
        struct mbuf **, caddr_t *);
int nfsm_v4build_open_confirm_xx(struct nfs4_compound *, struct nfs4_oparg_open *,
        struct mbuf **, caddr_t *);
int nfsm_v4build_read_xx(struct nfs4_compound *, struct nfs4_oparg_read *,
        struct mbuf **, caddr_t *);
int nfsm_v4build_write_xx(struct nfs4_compound *, struct nfs4_oparg_write *,
        struct mbuf **, caddr_t *);
int nfsm_v4build_commit_xx(struct nfs4_compound *, struct nfs4_oparg_commit *,
        struct mbuf **, caddr_t *);
int nfsm_v4build_readdir_xx(struct nfs4_compound *, struct nfs4_oparg_readdir *,
        struct mbuf **, caddr_t *);
int nfsm_v4build_renew_xx(struct nfs4_compound *, uint64_t,
        struct mbuf **, caddr_t *);
int nfsm_v4build_setattr_xx(struct nfs4_compound *, struct vattr *,
        struct nfs4_fctx *, struct mbuf **, caddr_t *);
int nfsm_v4build_create_xx(struct nfs4_compound *, struct nfs4_oparg_create *,
        struct mbuf **, caddr_t *);
int nfsm_v4build_rename_xx(struct nfs4_compound *, struct nfs4_oparg_rename *,
        struct mbuf **, caddr_t *);
int nfsm_v4build_link_xx(struct nfs4_compound *, struct nfs4_oparg_link *,
        struct mbuf **, caddr_t *);
int nfsm_v4build_remove_xx(struct nfs4_compound *, const char *, u_int,
        struct mbuf **, caddr_t *);

int nfsm_v4dissect_compound_xx(struct nfs4_compound *, struct mbuf **, caddr_t *);
int nfsm_v4dissect_getattr_xx(struct nfs4_compound *, struct nfs4_oparg_getattr *,
        struct mbuf **, caddr_t *);
int nfsm_v4dissect_getfh_xx(struct nfs4_compound *, struct nfs4_oparg_getfh *,
        struct mbuf **, caddr_t *);
int nfsm_v4dissect_setclientid_xx(struct nfs4_compound *,
        struct nfs4_oparg_setclientid *, struct mbuf **, caddr_t *);
int nfsm_v4dissect_close_xx(struct nfs4_compound *, struct nfs4_fctx *,
        struct mbuf **, caddr_t *);
int nfsm_v4dissect_access_xx(struct nfs4_compound *, struct nfs4_oparg_access *,
        struct mbuf **, caddr_t *);
int nfsm_v4dissect_open_xx(struct nfs4_compound *, struct nfs4_oparg_open *,
        struct mbuf **, caddr_t *);
int nfsm_v4dissect_open_confirm_xx(struct nfs4_compound *, struct nfs4_oparg_open *,
        struct mbuf **, caddr_t *);
int nfsm_v4dissect_read_xx(struct nfs4_compound *, struct nfs4_oparg_read *,
        struct mbuf **, caddr_t *);
int nfsm_v4dissect_write_xx(struct nfs4_compound *, struct nfs4_oparg_write *,
        struct mbuf **, caddr_t *);
int nfsm_v4dissect_commit_xx(struct nfs4_compound *, struct nfs4_oparg_commit *,
        struct mbuf **, caddr_t *);
int nfsm_v4dissect_setattr_xx(struct nfs4_compound *, struct mbuf **, caddr_t *);
int nfsm_v4dissect_create_xx(struct nfs4_compound *, struct nfs4_oparg_create *,
        struct mbuf **, caddr_t *);
int nfsm_v4dissect_readlink_xx(struct nfs4_compound *, struct uio *, 
        struct mbuf **, caddr_t *);

int nfsm_v4dissect_attrs_xx(struct nfsv4_fattr *, struct mbuf **, caddr_t *);

int nfsm_v4build_simple_xx(struct nfs4_compound *, uint32_t,
        struct mbuf **, caddr_t *);
int nfsm_v4dissect_simple_xx(struct nfs4_compound *, uint32_t,
        uint32_t, struct mbuf **, caddr_t *);

#define nfsm_v4build_putrootfh_xx(cp, mb, bpos) \
	nfsm_v4build_simple_xx((cp), NFSV4OP_PUTROOTFH, (mb), (bpos))

#define nfsm_v4build_lookupp_xx(cp, mb, bpos) \
	nfsm_v4build_simple_xx((cp), NFSV4OP_LOOKUPP, (mb), (bpos))

#define nfsm_v4build_savefh_xx(cp, mb, bpos)				\
	nfsm_v4build_simple_xx((cp), NFSV4OP_SAVEFH, (mb), (bpos))

#define nfsm_v4build_readlink_xx(cp, mb, bpos)				\
	nfsm_v4build_simple_xx((cp), NFSV4OP_READLINK, (mb), (bpos))


#define nfsm_v4dissect_putrootfh_xx(cp, mb, bpos)				\
	nfsm_v4dissect_simple_xx((cp), NFSV4OP_PUTROOTFH, 0, (mb), (bpos))

#define nfsm_v4dissect_lookup_xx(cp, mb, bpos) \
	nfsm_v4dissect_simple_xx((cp), NFSV4OP_LOOKUP, 0, (mb), (bpos))

#define nfsm_v4dissect_lookupp_xx(cp, mb, bpos) \
	nfsm_v4dissect_simple_xx((cp), NFSV4OP_LOOKUPP, 0, (mb), (bpos))

#define nfsm_v4dissect_putfh_xx(cp, mb, bpos) \
	nfsm_v4dissect_simple_xx((cp), NFSV4OP_PUTFH, 0, (mb), (bpos))

#define nfsm_v4dissect_renew_xx(cp, mb, bpos) \
	nfsm_v4dissect_simple_xx((cp), NFSV4OP_RENEW, 0, (mb), (bpos))

#define nfsm_v4dissect_setclientid_confirm_xx(cp, mb, bpos) \
	nfsm_v4dissect_simple_xx((cp), NFSV4OP_SETCLIENTID_CONFIRM, 0, (mb), (bpos))

#define nfsm_v4dissect_rename_xx(cp, mb, bpos)				\
	nfsm_v4dissect_simple_xx((cp), NFSV4OP_RENAME, 0, (mb), (bpos))

#define nfsm_v4dissect_link_xx(cp, mb, bpos)				\
	nfsm_v4dissect_simple_xx((cp), NFSV4OP_LINK, 0, (mb), (bpos))

#define nfsm_v4dissect_savefh_xx(cp, mb, bpos)				\
	nfsm_v4dissect_simple_xx((cp), NFSV4OP_SAVEFH, 0, (mb), (bpos))

#define nfsm_v4dissect_remove_xx(cp, mb, bpos)				\
	nfsm_v4dissect_simple_xx((cp), NFSV4OP_REMOVE, 0, (mb), (bpos))

#define nfsm_v4build_compound(cp, tag) do {			\
	int32_t t1;						\
	t1 = nfsm_v4build_compound_xx((cp), (tag), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_finalize(cp) do {			\
	int32_t t1;					\
	t1 = nfsm_v4build_finalize_xx((cp), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);				\
} while (0)

#define nfsm_v4build_putfh(cp, vp) do {				\
	int32_t t1;						\
	t1 = nfsm_v4build_putfh_xx((cp), (vp), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_putfh_nv(cp, gfh) do {				\
	int32_t t1;						\
	t1 = nfsm_v4build_putfh_nv_xx((cp), (gfh), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_putrootfh(cp) do {				\
	int32_t t1;						\
	t1 = nfsm_v4build_putrootfh_xx((cp), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_getattr(cp, ga) do {			\
	int32_t t1;						\
	t1 = nfsm_v4build_getattr_xx((cp), (ga), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_setattr(cp, vap, fcp) do {				\
	int32_t t1;							\
	t1 = nfsm_v4build_setattr_xx((cp), (vap), (fcp), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);						\
} while (0)

#define nfsm_v4build_lookup(cp, l) do {				\
	int32_t t1;						\
	t1 = nfsm_v4build_lookup_xx((cp), (l), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_lookupp(cp) do {			\
	int32_t t1;					\
	t1 = nfsm_v4build_lookupp_xx((cp), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);				\
} while (0)

#define nfsm_v4build_getfh(cp, gfh) do {				\
	int32_t t1;						\
	t1 = nfsm_v4build_getfh_xx((cp), (gfh), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_close(cp, fcp) do {			\
	int32_t t1;						\
	t1 = nfsm_v4build_close_xx((cp), (fcp), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_access(cp, acc) do {			\
	int32_t t1;						\
	t1 = nfsm_v4build_access_xx((cp), (acc), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_open(cp, o) do {				\
	int32_t t1;						\
	t1 = nfsm_v4build_open_xx((cp), (o), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_open_confirm(cp, o) do {				\
	int32_t t1;						\
	t1 = nfsm_v4build_open_confirm_xx((cp), (o), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_read(cp, r) do {				\
	int32_t t1;						\
	t1 = nfsm_v4build_read_xx((cp), (r), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_write(cp, w) do {				\
	int32_t t1;						\
	t1 = nfsm_v4build_write_xx((cp), (w), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_commit(cp, c) do {				\
	int32_t t1;						\
	t1 = nfsm_v4build_commit_xx((cp), (c), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_readdir(cp, r) do {				\
	int32_t t1;						\
	t1 = nfsm_v4build_readdir_xx((cp), (r), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_renew(cp, cid) do {				\
	int32_t t1;						\
	t1 = nfsm_v4build_renew_xx((cp), (cid), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_setclientid(cp, cid) do {				\
	int32_t t1;						\
	t1 = nfsm_v4build_setclientid_xx((cp), (cid), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_setclientid_confirm(cp, cid) do {				\
	int32_t t1;						\
	t1 = nfsm_v4build_setclientid_confirm_xx((cp), (cid), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_create(cp, c) do {				\
	int32_t t1;						\
	t1 = nfsm_v4build_create_xx((cp), (c), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_rename(cp, r) do {				\
	int32_t t1;						\
	t1 = nfsm_v4build_rename_xx((cp), (r), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_link(cp, r) do {				\
	int32_t t1;						\
	t1 = nfsm_v4build_link_xx((cp), (r), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_savefh(cp) do {			\
	int32_t t1;					\
	t1 = nfsm_v4build_savefh_xx((cp), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);				\
} while (0)

#define nfsm_v4build_readlink(cp) do {				\
	int32_t t1;						\
	t1 = nfsm_v4build_readlink_xx((cp), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);					\
} while (0)

#define nfsm_v4build_remove(cp, name, namelen) do {				\
	int32_t t1;								\
	t1 = nfsm_v4build_remove_xx((cp), (name), (namelen), &mb, &bpos);	\
	nfsm_bcheck(t1, mreq);							\
} while (0)

/* --- */

#define nfsm_v4dissect_compound(cp)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_compound_xx((cp), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#define nfsm_v4dissect_putfh(cp)			\
do {							\
        int32_t t1;					\
        t1 = nfsm_v4dissect_putfh_xx((cp), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);				\
} while (0)

#define nfsm_v4dissect_putrootfh(cp)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_putrootfh_xx((cp), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#define nfsm_v4dissect_getattr(cp, ga)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_getattr_xx((cp), (ga), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#define nfsm_v4dissect_setattr(cp)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_setattr_xx((cp), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#define nfsm_v4dissect_lookup(cp)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_lookup_xx((cp), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#define nfsm_v4dissect_lookupp(cp)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_lookupp_xx((cp), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#define nfsm_v4dissect_getfh(cp, gfh)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_getfh_xx((cp), (gfh), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#define nfsm_v4dissect_setclientid(cp, sci)				\
do {									\
        int32_t t1;							\
        t1 = nfsm_v4dissect_setclientid_xx((cp), (sci), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);						\
} while (0)

#define nfsm_v4dissect_setclientid_confirm(cp)				\
do {									\
        int32_t t1;							\
        t1 = nfsm_v4dissect_setclientid_confirm_xx((cp), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);						\
} while (0)

#define nfsm_v4dissect_close(cp, fcp)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_close_xx((cp), (fcp), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#define nfsm_v4dissect_access(cp, acc)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_access_xx((cp), (acc), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#define nfsm_v4dissect_open(cp, openp)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_open_xx((cp), (openp), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#define nfsm_v4dissect_open_confirm(cp, openp)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_open_confirm_xx((cp), (openp), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#define nfsm_v4dissect_read(cp, r)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_read_xx((cp), (r), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#define nfsm_v4dissect_write(cp, w)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_write_xx((cp), (w), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#define nfsm_v4dissect_commit(cp, c)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_commit_xx((cp), (c), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#define nfsm_v4dissect_attrs(fattr)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_attrs_xx((fattr), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#define nfsm_v4dissect_renew(cp)			\
do {							\
        int32_t t1;					\
        t1 = nfsm_v4dissect_renew_xx((cp), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);				\
} while (0)

#define nfsm_v4dissect_create(cp, c)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_create_xx((cp), (c), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#define nfsm_v4dissect_rename(cp)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_rename_xx((cp), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#define nfsm_v4dissect_link(cp)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_link_xx((cp), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#define nfsm_v4dissect_savefh(cp)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_savefh_xx((cp), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#define nfsm_v4dissect_readlink(cp, uiop)				\
do {									\
        int32_t t1;							\
        t1 = nfsm_v4dissect_readlink_xx((cp), (uiop), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);						\
} while (0)

#define nfsm_v4dissect_remove(cp)				\
do {								\
        int32_t t1;						\
        t1 = nfsm_v4dissect_remove_xx((cp), &md, &dpos);	\
        nfsm_dcheck(t1, mrep);					\
} while (0)

#endif /* _NFS4CLIENT_NFSM4_SUBS_H */
OpenPOWER on IntegriCloud