1NLM4(3) nlm4 4.0 NLM4(3)
2
3
4
6 packet.nfs.nlm4 - NLMv4 decoding module
7
9 class CANCEL4args(nlm4_cancargs)
10 struct nlm4_cancargs {
11 netobj cookie;
12 bool block;
13 bool exclusive;
14 nlm4_lock locker;
15 };
16
17
18 class CANCEL4res(nlm4_res)
19 struct nlm4_res {
20 netobj cookie;
21 nlm4_stats status;
22 };
23
24
25 class CANCEL_MSG4args(nlm4_cancargs)
26 struct nlm4_cancargs {
27 netobj cookie;
28 bool block;
29 bool exclusive;
30 nlm4_lock locker;
31 };
32
33
34 class CANCEL_RES4args(nlm4_res)
35 struct nlm4_res {
36 netobj cookie;
37 nlm4_stats status;
38 };
39
40
41 class FREE_ALL4args(baseobj.BaseObj)
42 struct FREE_ALL4args {
43 string name<MAXNAMELEN>;
44 int32 state;
45 };
46
47
48 Methods defined here:
49 ---------------------
50
51 __init__(self, unpack)
52 Constructor
53
54 Initialize object's private data according to the arguments given.
55 Arguments can be given as positional, named arguments or a
56 combination of both.
57
58 class GRANTED4args(nlm4_testargs)
59 struct nlm4_testargs {
60 netobj cookie;
61 bool exclusive;
62 nlm4_lock locker;
63 };
64
65
66 class GRANTED4res(nlm4_res)
67 struct nlm4_res {
68 netobj cookie;
69 nlm4_stats status;
70 };
71
72
73 class GRANTED_MSG4args(nlm4_testargs)
74 struct nlm4_testargs {
75 netobj cookie;
76 bool exclusive;
77 nlm4_lock locker;
78 };
79
80
81 class GRANTED_RES4args(nlm4_res)
82 struct nlm4_res {
83 netobj cookie;
84 nlm4_stats status;
85 };
86
87
88 class LOCK4args(nlm4_lockargs)
89 struct nlm4_lockargs {
90 netobj cookie;
91 bool block;
92 bool exclusive;
93 nlm4_lock locker;
94 bool reclaim; /* used for recovering locks */
95 int state; /* specify local status monitor state */
96 };
97
98
99 class LOCK4res(nlm4_res)
100 struct nlm4_res {
101 netobj cookie;
102 nlm4_stats status;
103 };
104
105
106 class LOCK_MSG4args(nlm4_lockargs)
107 struct nlm4_lockargs {
108 netobj cookie;
109 bool block;
110 bool exclusive;
111 nlm4_lock locker;
112 bool reclaim; /* used for recovering locks */
113 int state; /* specify local status monitor state */
114 };
115
116
117 class LOCK_RES4args(nlm4_res)
118 struct nlm4_res {
119 netobj cookie;
120 nlm4_stats status;
121 };
122
123
124 class NLM4args(packet.utils.RPCload)
125 union switch NLM4args (nlm_proc4 procedure) {
126 case const.NLMPROC4_NULL:
127 void;
128 case const.NLMPROC4_TEST:
129 TEST4args optest;
130 case const.NLMPROC4_LOCK:
131 LOCK4args oplock;
132 case const.NLMPROC4_CANCEL:
133 CANCEL4args opcancel;
134 case const.NLMPROC4_UNLOCK:
135 UNLOCK4args opunlock;
136 case const.NLMPROC4_GRANTED:
137 GRANTED4args opgranted;
138 case const.NLMPROC4_TEST_MSG:
139 TEST_MSG4args optest_msg;
140 case const.NLMPROC4_LOCK_MSG:
141 LOCK_MSG4args oplock_msg;
142 case const.NLMPROC4_CANCEL_MSG:
143 CANCEL_MSG4args opcancel_msg;
144 case const.NLMPROC4_UNLOCK_MSG:
145 UNLOCK_MSG4args opunlock_msg;
146 case const.NLMPROC4_GRANTED_MSG:
147 GRANTED_MSG4args opgranted_msg;
148 case const.NLMPROC4_TEST_RES:
149 TEST_RES4args optest_res;
150 case const.NLMPROC4_LOCK_RES:
151 LOCK_RES4args oplock_res;
152 case const.NLMPROC4_CANCEL_RES:
153 CANCEL_RES4args opcancel_res;
154 case const.NLMPROC4_UNLOCK_RES:
155 UNLOCK_RES4args opunlock_res;
156 case const.NLMPROC4_GRANTED_RES:
157 GRANTED_RES4args opgranted_res;
158 case const.NLMPROC4_SHARE:
159 SHARE4args opshare;
160 case const.NLMPROC4_UNSHARE:
161 UNSHARE4args opunshare;
162 case const.NLMPROC4_NM_LOCK:
163 NM_LOCK4args opnm_lock;
164 case const.NLMPROC4_FREE_ALL:
165 FREE_ALL4args opfree_all;
166 };
167
168
169 Methods defined here:
170 ---------------------
171
172 __init__(self, unpack, procedure)
173 Constructor
174
175 Initialize object's private data according to the arguments given.
176 Arguments can be given as positional, named arguments or a
177 combination of both.
178
179 class NLM4res(packet.utils.RPCload)
180 union switch NLM4res (nlm_proc4 procedure) {
181 case const.NLMPROC4_NULL:
182 void;
183 case const.NLMPROC4_TEST:
184 TEST4res optest;
185 case const.NLMPROC4_LOCK:
186 LOCK4res oplock;
187 case const.NLMPROC4_CANCEL:
188 CANCEL4res opcancel;
189 case const.NLMPROC4_UNLOCK:
190 UNLOCK4res opunlock;
191 case const.NLMPROC4_GRANTED:
192 GRANTED4res opgranted;
193 case const.NLMPROC4_TEST_MSG:
194 void;
195 case const.NLMPROC4_LOCK_MSG:
196 void;
197 case const.NLMPROC4_CANCEL_MSG:
198 void;
199 case const.NLMPROC4_UNLOCK_MSG:
200 void;
201 case const.NLMPROC4_GRANTED_MSG:
202 void;
203 case const.NLMPROC4_TEST_RES:
204 void;
205 case const.NLMPROC4_LOCK_RES:
206 void;
207 case const.NLMPROC4_CANCEL_RES:
208 void;
209 case const.NLMPROC4_UNLOCK_RES:
210 void;
211 case const.NLMPROC4_GRANTED_RES:
212 void;
213 case const.NLMPROC4_SHARE:
214 SHARE4res opshare;
215 case const.NLMPROC4_UNSHARE:
216 UNSHARE4res opunshare;
217 case const.NLMPROC4_NM_LOCK:
218 NM_LOCK4res opnm_lock;
219 case const.NLMPROC4_FREE_ALL:
220 void;
221 };
222
223
224 Methods defined here:
225 ---------------------
226
227 __init__(self, unpack, procedure)
228 Constructor
229
230 Initialize object's private data according to the arguments given.
231 Arguments can be given as positional, named arguments or a
232 combination of both.
233
234 class NM_LOCK4args(nlm4_lockargs)
235 struct nlm4_lockargs {
236 netobj cookie;
237 bool block;
238 bool exclusive;
239 nlm4_lock locker;
240 bool reclaim; /* used for recovering locks */
241 int state; /* specify local status monitor state */
242 };
243
244
245 class NM_LOCK4res(nlm4_res)
246 struct nlm4_res {
247 netobj cookie;
248 nlm4_stats status;
249 };
250
251
252 class SHARE4args(nlm4_shareargs)
253 struct nlm4_shareargs {
254 netobj cookie;
255 nlm4_share share;
256 bool reclaim;
257 };
258
259
260 class SHARE4res(nlm4_shareres)
261 struct nlm4_shareres {
262 netobj cookie;
263 nlm4_stats status;
264 int sequence;
265 };
266
267
268 class TEST4args(nlm4_testargs)
269 struct nlm4_testargs {
270 netobj cookie;
271 bool exclusive;
272 nlm4_lock locker;
273 };
274
275
276 class TEST4res(nlm4_testres)
277 struct nlm4_testres {
278 netobj cookie;
279 nlm4_testrply stat;
280 };
281
282
283 class TEST_MSG4args(nlm4_testargs)
284 struct nlm4_testargs {
285 netobj cookie;
286 bool exclusive;
287 nlm4_lock locker;
288 };
289
290
291 class TEST_RES4args(nlm4_testres)
292 struct nlm4_testres {
293 netobj cookie;
294 nlm4_testrply stat;
295 };
296
297
298 class UNLOCK4args(nlm4_unlockargs)
299 struct nlm4_unlockargs {
300 netobj cookie;
301 nlm4_lock locker;
302 };
303
304
305 class UNLOCK4res(nlm4_res)
306 struct nlm4_res {
307 netobj cookie;
308 nlm4_stats status;
309 };
310
311
312 class UNLOCK_MSG4args(nlm4_unlockargs)
313 struct nlm4_unlockargs {
314 netobj cookie;
315 nlm4_lock locker;
316 };
317
318
319 class UNLOCK_RES4args(nlm4_res)
320 struct nlm4_res {
321 netobj cookie;
322 nlm4_stats status;
323 };
324
325
326 class UNSHARE4args(nlm4_shareargs)
327 struct nlm4_shareargs {
328 netobj cookie;
329 nlm4_share share;
330 bool reclaim;
331 };
332
333
334 class UNSHARE4res(nlm4_shareres)
335 struct nlm4_shareres {
336 netobj cookie;
337 nlm4_stats status;
338 int sequence;
339 };
340
341
342 class fsh4_access(packet.utils.Enum)
343 enum fsh4_access
344
345
346 class fsh4_mode(packet.utils.Enum)
347 enum fsh4_mode
348
349
350 class nfs_bool(packet.utils.Enum)
351 enum nfs_bool
352
353
354 class nlm4_cancargs(baseobj.BaseObj)
355 struct nlm4_cancargs {
356 netobj cookie;
357 bool block;
358 bool exclusive;
359 nlm4_lock locker;
360 };
361
362
363 Methods defined here:
364 ---------------------
365
366 __init__(self, unpack)
367 Constructor
368
369 Initialize object's private data according to the arguments given.
370 Arguments can be given as positional, named arguments or a
371 combination of both.
372
373 class nlm4_holder(baseobj.BaseObj)
374 struct nlm4_holder {
375 bool exclusive;
376 int32 svid;
377 strobj oh;
378 uint64 offset;
379 uint64 length;
380 };
381
382
383 Methods defined here:
384 ---------------------
385
386 __init__(self, unpack)
387 Constructor
388
389 Initialize object's private data according to the arguments given.
390 Arguments can be given as positional, named arguments or a
391 combination of both.
392
393 class nlm4_lock(baseobj.BaseObj)
394 struct nlm4_lock {
395 string owner<LM_MAXSTRLEN>;
396 nlm_fh fh;
397 strobj oh;
398 int32 svid;
399 uint64 offset;
400 uint64 length;
401 };
402
403
404 Methods defined here:
405 ---------------------
406
407 __init__(self, unpack)
408 Constructor
409
410 Initialize object's private data according to the arguments given.
411 Arguments can be given as positional, named arguments or a
412 combination of both.
413
414 class nlm4_lockargs(baseobj.BaseObj)
415 struct nlm4_lockargs {
416 netobj cookie;
417 bool block;
418 bool exclusive;
419 nlm4_lock locker;
420 bool reclaim; /* used for recovering locks */
421 int state; /* specify local status monitor state */
422 };
423
424
425 Methods defined here:
426 ---------------------
427
428 __init__(self, unpack)
429 Constructor
430
431 Initialize object's private data according to the arguments given.
432 Arguments can be given as positional, named arguments or a
433 combination of both.
434
435 class nlm4_res(baseobj.BaseObj)
436 struct nlm4_res {
437 netobj cookie;
438 nlm4_stats status;
439 };
440
441
442 Methods defined here:
443 ---------------------
444
445 __init__(self, unpack)
446 Constructor
447
448 Initialize object's private data according to the arguments given.
449 Arguments can be given as positional, named arguments or a
450 combination of both.
451
452 class nlm4_share(baseobj.BaseObj)
453 struct nlm4_share {
454 string owner<LM_MAXSTRLEN>;
455 nlm_fh fh;
456 strobj oh;
457 fsh4_mode mode;
458 fsh4_access access;
459 };
460
461
462 Methods defined here:
463 ---------------------
464
465 __init__(self, unpack)
466 Constructor
467
468 Initialize object's private data according to the arguments given.
469 Arguments can be given as positional, named arguments or a
470 combination of both.
471
472 class nlm4_shareargs(baseobj.BaseObj)
473 struct nlm4_shareargs {
474 netobj cookie;
475 nlm4_share share;
476 bool reclaim;
477 };
478
479
480 Methods defined here:
481 ---------------------
482
483 __init__(self, unpack)
484 Constructor
485
486 Initialize object's private data according to the arguments given.
487 Arguments can be given as positional, named arguments or a
488 combination of both.
489
490 class nlm4_shareres(baseobj.BaseObj)
491 struct nlm4_shareres {
492 netobj cookie;
493 nlm4_stats status;
494 int sequence;
495 };
496
497
498 Methods defined here:
499 ---------------------
500
501 __init__(self, unpack)
502 Constructor
503
504 Initialize object's private data according to the arguments given.
505 Arguments can be given as positional, named arguments or a
506 combination of both.
507
508 class nlm4_stats(packet.utils.Enum)
509 enum nlm4_stats
510
511
512 class nlm4_testargs(baseobj.BaseObj)
513 struct nlm4_testargs {
514 netobj cookie;
515 bool exclusive;
516 nlm4_lock locker;
517 };
518
519
520 Methods defined here:
521 ---------------------
522
523 __init__(self, unpack)
524 Constructor
525
526 Initialize object's private data according to the arguments given.
527 Arguments can be given as positional, named arguments or a
528 combination of both.
529
530 class nlm4_testres(baseobj.BaseObj)
531 struct nlm4_testres {
532 netobj cookie;
533 nlm4_testrply stat;
534 };
535
536
537 Methods defined here:
538 ---------------------
539
540 __init__(self, unpack)
541 Constructor
542
543 Initialize object's private data according to the arguments given.
544 Arguments can be given as positional, named arguments or a
545 combination of both.
546
547 class nlm4_testrply(baseobj.BaseObj)
548 union switch nlm4_testrply (nlm4_stats status) {
549 case const.NLM4_DENIED:
550 nlm4_holder denied;
551 default:
552 void;
553 };
554
555
556 Methods defined here:
557 ---------------------
558
559 __init__(self, unpack)
560 Constructor
561
562 Initialize object's private data according to the arguments given.
563 Arguments can be given as positional, named arguments or a
564 combination of both.
565
566 class nlm4_unlockargs(baseobj.BaseObj)
567 struct nlm4_unlockargs {
568 netobj cookie;
569 nlm4_lock locker;
570 };
571
572
573 Methods defined here:
574 ---------------------
575
576 __init__(self, unpack)
577 Constructor
578
579 Initialize object's private data according to the arguments given.
580 Arguments can be given as positional, named arguments or a
581 combination of both.
582
583 class nlm_proc4(packet.utils.Enum)
584 enum nlm_proc4
585
586
588 netobj(unpack)
589
590 nlm_fh(unpack)
591
592 strobj(unpack)
593
595 baseobj(3), packet.nfs.nlm4_const(3), packet.unpack(3), packet.utils(3)
596
597
599 No known bugs.
600
602 Jorge Mora (mora@netapp.com)
603
604
605
606NFStest 3.2 21 March 2023 NLM4(3)