Motr  M0
cob_xc.c
Go to the documentation of this file.
1 /* This file is automatically generated from cob/cob.h */
2 
3 #include "lib/misc.h" /* offsetof */
4 #include "lib/assert.h"
5 #include "xcode/xcode.h"
6 
7 #include "cob/cob.h"
8 #include "cob/cob_xc.h"
9 
10 #if !defined(__KERNEL__)
12 #endif
13 #if !defined(__KERNEL__)
15 #endif
16 #if !defined(__KERNEL__)
18 #endif
19 #if !defined(__KERNEL__)
21 #endif
22 #if !defined(__KERNEL__)
24 #endif
25 #if !defined(__KERNEL__)
27 #endif
28 #if !defined(__KERNEL__)
30 #endif
31 #if !defined(__KERNEL__)
33 #endif
34 #if !defined(__KERNEL__)
36 #endif
37 #if !defined(__KERNEL__)
39 #endif
40 #if !defined(__KERNEL__)
42 #endif
43 #if !defined(__KERNEL__)
45 #endif
46 #if !defined(__KERNEL__)
48 #endif
49 
50 #if !defined(__KERNEL__)
51 static struct _m0_cob_domain_s {
53  struct m0_xcode_field _child[10];
54 } _m0_cob_domain = {
55  ._type = {
57  .xct_name = "m0_cob_domain",
58  .xct_sizeof = sizeof (struct m0_cob_domain),
59  .xct_nr = 10,
60  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_BE,
61  }
62 };
63 
65 M0_BASSERT(offsetof(struct _m0_cob_domain_s, _child[0]) ==
66  offsetof(struct m0_xcode_type, xct_child[0]));
67 #endif
68 
69 #if !defined(__KERNEL__)
70 static struct _m0_cob_domain_id_s {
74  ._type = {
76  .xct_name = "m0_cob_domain_id",
77  .xct_sizeof = sizeof (struct m0_cob_domain_id),
78  .xct_nr = 1,
79  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_BE,
80  }
81 };
82 
84 M0_BASSERT(offsetof(struct _m0_cob_domain_id_s, _child[0]) ==
85  offsetof(struct m0_xcode_type, xct_child[0]));
86 #endif
87 
88 #if !defined(__KERNEL__)
89 static struct _m0_cob_nskey_s {
92 } _m0_cob_nskey = {
93  ._type = {
95  .xct_name = "m0_cob_nskey",
96  .xct_sizeof = sizeof (struct m0_cob_nskey),
97  .xct_nr = 2,
98  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_BE,
99  }
100 };
101 
103 M0_BASSERT(offsetof(struct _m0_cob_nskey_s, _child[0]) ==
104  offsetof(struct m0_xcode_type, xct_child[0]));
105 #endif
106 
107 #if !defined(__KERNEL__)
108 static struct _m0_cob_nsrec_s {
110  struct m0_xcode_field _child[17];
111 } _m0_cob_nsrec = {
112  ._type = {
114  .xct_name = "m0_cob_nsrec",
115  .xct_sizeof = sizeof (struct m0_cob_nsrec),
116  .xct_nr = 17,
117  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_BE,
118  }
119 };
120 
122 M0_BASSERT(offsetof(struct _m0_cob_nsrec_s, _child[0]) ==
123  offsetof(struct m0_xcode_type, xct_child[0]));
124 #endif
125 
126 #if !defined(__KERNEL__)
127 static struct _m0_cob_oikey_s {
130 } _m0_cob_oikey = {
131  ._type = {
133  .xct_name = "m0_cob_oikey",
134  .xct_sizeof = sizeof (struct m0_cob_oikey),
135  .xct_nr = 2,
136  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_BE,
137  }
138 };
139 
141 M0_BASSERT(offsetof(struct _m0_cob_oikey_s, _child[0]) ==
142  offsetof(struct m0_xcode_type, xct_child[0]));
143 #endif
144 
145 #if !defined(__KERNEL__)
146 static struct _m0_cob_fabkey_s {
149 } _m0_cob_fabkey = {
150  ._type = {
152  .xct_name = "m0_cob_fabkey",
153  .xct_sizeof = sizeof (struct m0_cob_fabkey),
154  .xct_nr = 1,
155  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_BE,
156  }
157 };
158 
160 M0_BASSERT(offsetof(struct _m0_cob_fabkey_s, _child[0]) ==
161  offsetof(struct m0_xcode_type, xct_child[0]));
162 #endif
163 
164 #if !defined(__KERNEL__)
165 static struct _m0_cob_fabrec_s {
168 } _m0_cob_fabrec = {
169  ._type = {
171  .xct_name = "m0_cob_fabrec",
172  .xct_sizeof = sizeof (struct m0_cob_fabrec),
173  .xct_nr = 5,
174  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_BE,
175  }
176 };
177 
179 M0_BASSERT(offsetof(struct _m0_cob_fabrec_s, _child[0]) ==
180  offsetof(struct m0_xcode_type, xct_child[0]));
181 #endif
182 
183 #if !defined(__KERNEL__)
184 static struct _m0_cob_omgkey_s {
187 } _m0_cob_omgkey = {
188  ._type = {
190  .xct_name = "m0_cob_omgkey",
191  .xct_sizeof = sizeof (struct m0_cob_omgkey),
192  .xct_nr = 1,
193  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_BE,
194  }
195 };
196 
198 M0_BASSERT(offsetof(struct _m0_cob_omgkey_s, _child[0]) ==
199  offsetof(struct m0_xcode_type, xct_child[0]));
200 #endif
201 
202 #if !defined(__KERNEL__)
203 static struct _m0_cob_omgrec_s {
206 } _m0_cob_omgrec = {
207  ._type = {
209  .xct_name = "m0_cob_omgrec",
210  .xct_sizeof = sizeof (struct m0_cob_omgrec),
211  .xct_nr = 3,
212  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_BE,
213  }
214 };
215 
217 M0_BASSERT(offsetof(struct _m0_cob_omgrec_s, _child[0]) ==
218  offsetof(struct m0_xcode_type, xct_child[0]));
219 #endif
220 
221 #if !defined(__KERNEL__)
222 static struct _m0_cob_eakey_s {
225 } _m0_cob_eakey = {
226  ._type = {
228  .xct_name = "m0_cob_eakey",
229  .xct_sizeof = sizeof (struct m0_cob_eakey),
230  .xct_nr = 2,
231  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_BE,
232  }
233 };
234 
236 M0_BASSERT(offsetof(struct _m0_cob_eakey_s, _child[0]) ==
237  offsetof(struct m0_xcode_type, xct_child[0]));
238 #endif
239 
240 #if !defined(__KERNEL__)
241 static struct _m0_cob_earec_s {
244 } _m0_cob_earec = {
245  ._type = {
247  .xct_name = "m0_cob_earec",
248  .xct_sizeof = sizeof (struct m0_cob_earec),
249  .xct_nr = 2,
250  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_BE,
251  }
252 };
253 
255 M0_BASSERT(offsetof(struct _m0_cob_earec_s, _child[0]) ==
256  offsetof(struct m0_xcode_type, xct_child[0]));
257 #endif
258 
259 #if !defined(__KERNEL__)
260 static struct _m0_cob_bckey_s {
263 } _m0_cob_bckey = {
264  ._type = {
266  .xct_name = "m0_cob_bckey",
267  .xct_sizeof = sizeof (struct m0_cob_bckey),
268  .xct_nr = 2,
269  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_BE,
270  }
271 };
272 
274 M0_BASSERT(offsetof(struct _m0_cob_bckey_s, _child[0]) ==
275  offsetof(struct m0_xcode_type, xct_child[0]));
276 #endif
277 
278 #if !defined(__KERNEL__)
279 static struct _m0_cob_bcrec_s {
282 } _m0_cob_bcrec = {
283  ._type = {
285  .xct_name = "m0_cob_bcrec",
286  .xct_sizeof = sizeof (struct m0_cob_bcrec),
287  .xct_nr = 2,
288  .xct_flags = M0_XCODE_TYPE_FLAG_DOM_BE,
289  }
290 };
291 
293 M0_BASSERT(offsetof(struct _m0_cob_bcrec_s, _child[0]) ==
294  offsetof(struct m0_xcode_type, xct_child[0]));
295 #endif
296 
297 
298 #if !defined(__KERNEL__)
299 M0_BASSERT(sizeof(struct m0_cob_domain) == 1720U);
300 #endif
301 
302 #if !defined(__KERNEL__)
303 M0_BASSERT(sizeof ((struct m0_cob_domain *)0)->cd_header == 16U);
305 #endif
306 #if !defined(__KERNEL__)
307 M0_BASSERT(sizeof ((struct m0_cob_domain *)0)->cd_id == 8U);
308 M0_BASSERT(offsetof(struct m0_cob_domain, cd_id) == 16U);
309 #endif
310 #if !defined(__KERNEL__)
311 M0_BASSERT(sizeof ((struct m0_cob_domain *)0)->cd_footer == 16U);
312 M0_BASSERT(offsetof(struct m0_cob_domain, cd_footer) == 24U);
313 #endif
314 #if !defined(__KERNEL__)
315 M0_BASSERT(sizeof ((struct m0_cob_domain *)0)->cd_object_index == 256U);
317 #endif
318 #if !defined(__KERNEL__)
319 M0_BASSERT(sizeof ((struct m0_cob_domain *)0)->cd_namespace == 256U);
321 #endif
322 #if !defined(__KERNEL__)
323 M0_BASSERT(sizeof ((struct m0_cob_domain *)0)->cd_fileattr_basic == 256U);
325 #endif
326 #if !defined(__KERNEL__)
327 M0_BASSERT(sizeof ((struct m0_cob_domain *)0)->cd_fileattr_omg == 256U);
329 #endif
330 #if !defined(__KERNEL__)
331 M0_BASSERT(sizeof ((struct m0_cob_domain *)0)->cd_fileattr_ea == 256U);
333 #endif
334 #if !defined(__KERNEL__)
335 M0_BASSERT(sizeof ((struct m0_cob_domain *)0)->cd_bytecount == 256U);
336 M0_BASSERT(offsetof(struct m0_cob_domain, cd_bytecount) == 1320U);
337 #endif
338 #if !defined(__KERNEL__)
339 M0_BASSERT(sizeof ((struct m0_cob_domain *)0)->cd_lock == 144U);
340 M0_BASSERT(offsetof(struct m0_cob_domain, cd_lock) == 1576U);
341 #endif
342 
343 #if !defined(__KERNEL__)
344 M0_BASSERT(sizeof(struct m0_cob_domain_id) == 8U);
345 #endif
346 
347 #if !defined(__KERNEL__)
348 M0_BASSERT(sizeof ((struct m0_cob_domain_id *)0)->id == 8U);
349 M0_BASSERT(offsetof(struct m0_cob_domain_id, id) == 0U);
350 #endif
351 
352 #if !defined(__KERNEL__)
353 M0_BASSERT(sizeof(struct m0_cob_nskey) == 24U);
354 #endif
355 
356 #if !defined(__KERNEL__)
357 M0_BASSERT(sizeof ((struct m0_cob_nskey *)0)->cnk_pfid == 16U);
358 M0_BASSERT(offsetof(struct m0_cob_nskey, cnk_pfid) == 0U);
359 #endif
360 #if !defined(__KERNEL__)
361 M0_BASSERT(sizeof ((struct m0_cob_nskey *)0)->cnk_name == 4U);
362 M0_BASSERT(offsetof(struct m0_cob_nskey, cnk_name) == 16U);
363 #endif
364 
365 #if !defined(__KERNEL__)
366 M0_BASSERT(sizeof(struct m0_cob_nsrec) == 152U);
367 #endif
368 
369 #if !defined(__KERNEL__)
370 M0_BASSERT(sizeof ((struct m0_cob_nsrec *)0)->cnr_header == 16U);
372 #endif
373 #if !defined(__KERNEL__)
374 M0_BASSERT(sizeof ((struct m0_cob_nsrec *)0)->cnr_fid == 16U);
375 M0_BASSERT(offsetof(struct m0_cob_nsrec, cnr_fid) == 16U);
376 #endif
377 #if !defined(__KERNEL__)
378 M0_BASSERT(sizeof ((struct m0_cob_nsrec *)0)->cnr_linkno == 4U);
379 M0_BASSERT(offsetof(struct m0_cob_nsrec, cnr_linkno) == 32U);
380 #endif
381 #if !defined(__KERNEL__)
382 M0_BASSERT(sizeof ((struct m0_cob_nsrec *)0)->cnr_nlink == 4U);
383 M0_BASSERT(offsetof(struct m0_cob_nsrec, cnr_nlink) == 36U);
384 #endif
385 #if !defined(__KERNEL__)
386 M0_BASSERT(sizeof ((struct m0_cob_nsrec *)0)->cnr_cntr == 4U);
387 M0_BASSERT(offsetof(struct m0_cob_nsrec, cnr_cntr) == 40U);
388 #endif
389 #if !defined(__KERNEL__)
390 M0_BASSERT(sizeof ((struct m0_cob_nsrec *)0)->cnr_pad == 4U);
391 M0_BASSERT(offsetof(struct m0_cob_nsrec, cnr_pad) == 44U);
392 #endif
393 #if !defined(__KERNEL__)
394 M0_BASSERT(sizeof ((struct m0_cob_nsrec *)0)->cnr_omgid == 8U);
395 M0_BASSERT(offsetof(struct m0_cob_nsrec, cnr_omgid) == 48U);
396 #endif
397 #if !defined(__KERNEL__)
398 M0_BASSERT(sizeof ((struct m0_cob_nsrec *)0)->cnr_size == 8U);
399 M0_BASSERT(offsetof(struct m0_cob_nsrec, cnr_size) == 56U);
400 #endif
401 #if !defined(__KERNEL__)
402 M0_BASSERT(sizeof ((struct m0_cob_nsrec *)0)->cnr_bytecount == 8U);
404 #endif
405 #if !defined(__KERNEL__)
406 M0_BASSERT(sizeof ((struct m0_cob_nsrec *)0)->cnr_blksize == 8U);
408 #endif
409 #if !defined(__KERNEL__)
410 M0_BASSERT(sizeof ((struct m0_cob_nsrec *)0)->cnr_blocks == 8U);
411 M0_BASSERT(offsetof(struct m0_cob_nsrec, cnr_blocks) == 80U);
412 #endif
413 #if !defined(__KERNEL__)
414 M0_BASSERT(sizeof ((struct m0_cob_nsrec *)0)->cnr_atime == 8U);
415 M0_BASSERT(offsetof(struct m0_cob_nsrec, cnr_atime) == 88U);
416 #endif
417 #if !defined(__KERNEL__)
418 M0_BASSERT(sizeof ((struct m0_cob_nsrec *)0)->cnr_mtime == 8U);
419 M0_BASSERT(offsetof(struct m0_cob_nsrec, cnr_mtime) == 96U);
420 #endif
421 #if !defined(__KERNEL__)
422 M0_BASSERT(sizeof ((struct m0_cob_nsrec *)0)->cnr_ctime == 8U);
423 M0_BASSERT(offsetof(struct m0_cob_nsrec, cnr_ctime) == 104U);
424 #endif
425 #if !defined(__KERNEL__)
426 M0_BASSERT(sizeof ((struct m0_cob_nsrec *)0)->cnr_lid == 8U);
427 M0_BASSERT(offsetof(struct m0_cob_nsrec, cnr_lid) == 112U);
428 #endif
429 #if !defined(__KERNEL__)
430 M0_BASSERT(sizeof ((struct m0_cob_nsrec *)0)->cnr_pver == 16U);
431 M0_BASSERT(offsetof(struct m0_cob_nsrec, cnr_pver) == 120U);
432 #endif
433 #if !defined(__KERNEL__)
434 M0_BASSERT(sizeof ((struct m0_cob_nsrec *)0)->cnr_footer == 16U);
435 M0_BASSERT(offsetof(struct m0_cob_nsrec, cnr_footer) == 136U);
436 #endif
437 
438 #if !defined(__KERNEL__)
439 M0_BASSERT(sizeof(struct m0_cob_oikey) == 24U);
440 #endif
441 
442 #if !defined(__KERNEL__)
443 M0_BASSERT(sizeof ((struct m0_cob_oikey *)0)->cok_fid == 16U);
444 M0_BASSERT(offsetof(struct m0_cob_oikey, cok_fid) == 0U);
445 #endif
446 #if !defined(__KERNEL__)
447 M0_BASSERT(sizeof ((struct m0_cob_oikey *)0)->cok_linkno == 4U);
448 M0_BASSERT(offsetof(struct m0_cob_oikey, cok_linkno) == 16U);
449 #endif
450 
451 #if !defined(__KERNEL__)
452 M0_BASSERT(sizeof(struct m0_cob_fabkey) == 16U);
453 #endif
454 
455 #if !defined(__KERNEL__)
456 M0_BASSERT(sizeof ((struct m0_cob_fabkey *)0)->cfb_fid == 16U);
457 M0_BASSERT(offsetof(struct m0_cob_fabkey, cfb_fid) == 0U);
458 #endif
459 
460 #if !defined(__KERNEL__)
461 M0_BASSERT(sizeof(struct m0_cob_fabrec) == 40U);
462 #endif
463 
464 #if !defined(__KERNEL__)
465 M0_BASSERT(sizeof ((struct m0_cob_fabrec *)0)->cfb_pver == 16U);
466 M0_BASSERT(offsetof(struct m0_cob_fabrec, cfb_pver) == 0U);
467 #endif
468 #if !defined(__KERNEL__)
469 M0_BASSERT(sizeof ((struct m0_cob_fabrec *)0)->cfb_version == 8U);
471 #endif
472 #if !defined(__KERNEL__)
473 M0_BASSERT(sizeof ((struct m0_cob_fabrec *)0)->cfb_layoutid == 8U);
475 #endif
476 #if !defined(__KERNEL__)
477 M0_BASSERT(sizeof ((struct m0_cob_fabrec *)0)->cfb_linklen == 4U);
479 #endif
480 #if !defined(__KERNEL__)
481 M0_BASSERT(sizeof ((struct m0_cob_fabrec *)0)->cfb_link == 0U);
482 M0_BASSERT(offsetof(struct m0_cob_fabrec, cfb_link) == 36U);
483 #endif
484 
485 #if !defined(__KERNEL__)
486 M0_BASSERT(sizeof(struct m0_cob_omgkey) == 8U);
487 #endif
488 
489 #if !defined(__KERNEL__)
490 M0_BASSERT(sizeof ((struct m0_cob_omgkey *)0)->cok_omgid == 8U);
492 #endif
493 
494 #if !defined(__KERNEL__)
495 M0_BASSERT(sizeof(struct m0_cob_omgrec) == 12U);
496 #endif
497 
498 #if !defined(__KERNEL__)
499 M0_BASSERT(sizeof ((struct m0_cob_omgrec *)0)->cor_uid == 4U);
500 M0_BASSERT(offsetof(struct m0_cob_omgrec, cor_uid) == 0U);
501 #endif
502 #if !defined(__KERNEL__)
503 M0_BASSERT(sizeof ((struct m0_cob_omgrec *)0)->cor_mode == 4U);
504 M0_BASSERT(offsetof(struct m0_cob_omgrec, cor_mode) == 4U);
505 #endif
506 #if !defined(__KERNEL__)
507 M0_BASSERT(sizeof ((struct m0_cob_omgrec *)0)->cor_gid == 4U);
508 M0_BASSERT(offsetof(struct m0_cob_omgrec, cor_gid) == 8U);
509 #endif
510 
511 #if !defined(__KERNEL__)
512 M0_BASSERT(sizeof(struct m0_cob_eakey) == 24U);
513 #endif
514 
515 #if !defined(__KERNEL__)
516 M0_BASSERT(sizeof ((struct m0_cob_eakey *)0)->cek_fid == 16U);
517 M0_BASSERT(offsetof(struct m0_cob_eakey, cek_fid) == 0U);
518 #endif
519 #if !defined(__KERNEL__)
520 M0_BASSERT(sizeof ((struct m0_cob_eakey *)0)->cek_name == 4U);
521 M0_BASSERT(offsetof(struct m0_cob_eakey, cek_name) == 16U);
522 #endif
523 
524 #if !defined(__KERNEL__)
525 M0_BASSERT(sizeof(struct m0_cob_earec) == 4U);
526 #endif
527 
528 #if !defined(__KERNEL__)
529 M0_BASSERT(sizeof ((struct m0_cob_earec *)0)->cer_size == 4U);
530 M0_BASSERT(offsetof(struct m0_cob_earec, cer_size) == 0U);
531 #endif
532 #if !defined(__KERNEL__)
533 M0_BASSERT(sizeof ((struct m0_cob_earec *)0)->cer_body == 0U);
534 M0_BASSERT(offsetof(struct m0_cob_earec, cer_body) == 4U);
535 #endif
536 
537 #if !defined(__KERNEL__)
538 M0_BASSERT(sizeof(struct m0_cob_bckey) == 24U);
539 #endif
540 
541 #if !defined(__KERNEL__)
542 M0_BASSERT(sizeof ((struct m0_cob_bckey *)0)->cbk_pfid == 16U);
543 M0_BASSERT(offsetof(struct m0_cob_bckey, cbk_pfid) == 0U);
544 #endif
545 #if !defined(__KERNEL__)
546 M0_BASSERT(sizeof ((struct m0_cob_bckey *)0)->cbk_user_id == 8U);
548 #endif
549 
550 #if !defined(__KERNEL__)
551 M0_BASSERT(sizeof(struct m0_cob_bcrec) == 16U);
552 #endif
553 
554 #if !defined(__KERNEL__)
555 M0_BASSERT(sizeof ((struct m0_cob_bcrec *)0)->cbr_bytecount == 8U);
557 #endif
558 #if !defined(__KERNEL__)
559 M0_BASSERT(sizeof ((struct m0_cob_bcrec *)0)->cbr_cob_objects == 8U);
561 #endif
562 
563 
565  { .xev_idx = 0, .xev_name = "M0_COB_OP_DOMAIN_MKFS", .xev_val = 0 },
566  { .xev_idx = 1, .xev_name = "M0_COB_OP_LOOKUP", .xev_val = 1 },
567  { .xev_idx = 2, .xev_name = "M0_COB_OP_LOCATE", .xev_val = 2 },
568  { .xev_idx = 3, .xev_name = "M0_COB_OP_CREATE", .xev_val = 3 },
569  { .xev_idx = 4, .xev_name = "M0_COB_OP_DELETE", .xev_val = 4 },
570  { .xev_idx = 5, .xev_name = "M0_COB_OP_TRUNCATE", .xev_val = 5 },
571  { .xev_idx = 6, .xev_name = "M0_COB_OP_DELETE_PUT", .xev_val = 6 },
572  { .xev_idx = 7, .xev_name = "M0_COB_OP_UPDATE", .xev_val = 7 },
573  { .xev_idx = 8, .xev_name = "M0_COB_OP_FEA_SET", .xev_val = 8 },
574  { .xev_idx = 9, .xev_name = "M0_COB_OP_FEA_DEL", .xev_val = 9 },
575  { .xev_idx = 10, .xev_name = "M0_COB_OP_NAME_ADD", .xev_val = 10 },
576  { .xev_idx = 11, .xev_name = "M0_COB_OP_NAME_DEL", .xev_val = 11 },
577  { .xev_idx = 12, .xev_name = "M0_COB_OP_NAME_UPDATE", .xev_val = 12 },
578  { .xev_idx = 13, .xev_name = "M0_COB_OP_BYTECOUNT_SET", .xev_val = 13 },
579  { .xev_idx = 14, .xev_name = "M0_COB_OP_BYTECOUNT_DEL", .xev_val = 14 },
580  { .xev_idx = 15, .xev_name = "M0_COB_OP_BYTECOUNT_UPDATE", .xev_val = 15 },
581  { .xev_idx = -1, .xev_name = "Invalid value of enum 'm0_cob_op'." }
582 };
583 
585  .xe_name = "m0_cob_op",
586  .xe_nr = 16,
587  .xe_val = m0_cob_op_data,
588  .xe_maxlen = 26
589 };
590 
591 #if !defined(__KERNEL__)
592 M0_INTERNAL void m0_xc_m0_cob_domain_struct_init(void)
593 {
594  _m0_cob_domain._child[0] = (struct m0_xcode_field) {
595  .xf_name = "cd_header",
596 
597  .xf_type = m0_format_header_xc,
598 
599  .xf_tag = 0,
600  .xf_opaque = NULL,
601  .xf_offset = offsetof(struct m0_cob_domain, cd_header),
602  .xf_read = NULL,
603  .xf_decor = {
605  }
606  };
608 
609  _m0_cob_domain._child[1] = (struct m0_xcode_field) {
610  .xf_name = "cd_id",
611 #ifdef __KERNEL__
612  .xf_type = &M0_XT_VOID,
613 #else
614 
615  .xf_type = m0_cob_domain_id_xc,
616 #endif
617  .xf_tag = 0,
618  .xf_opaque = NULL,
619  .xf_offset = offsetof(struct m0_cob_domain, cd_id),
620  .xf_read = NULL,
621  .xf_decor = {
623  }
624  };
625 #if !defined(__KERNEL__)
627 #endif
628 
629  _m0_cob_domain._child[2] = (struct m0_xcode_field) {
630  .xf_name = "cd_footer",
631 
632  .xf_type = m0_format_footer_xc,
633 
634  .xf_tag = 0,
635  .xf_opaque = NULL,
636  .xf_offset = offsetof(struct m0_cob_domain, cd_footer),
637  .xf_read = NULL,
638  .xf_decor = {
640  }
641  };
643 
644  _m0_cob_domain._child[3] = (struct m0_xcode_field) {
645  .xf_name = "cd_object_index",
646 #ifdef __KERNEL__
647  .xf_type = &M0_XT_VOID,
648 #else
649 
650  .xf_type = m0_be_btree_xc,
651 #endif
652  .xf_tag = 0,
653  .xf_opaque = NULL,
654  .xf_offset = offsetof(struct m0_cob_domain, cd_object_index),
655  .xf_read = NULL,
656  .xf_decor = {
658  }
659  };
660 #if !defined(__KERNEL__)
662 #endif
663 
664  _m0_cob_domain._child[4] = (struct m0_xcode_field) {
665  .xf_name = "cd_namespace",
666 #ifdef __KERNEL__
667  .xf_type = &M0_XT_VOID,
668 #else
669 
670  .xf_type = m0_be_btree_xc,
671 #endif
672  .xf_tag = 0,
673  .xf_opaque = NULL,
674  .xf_offset = offsetof(struct m0_cob_domain, cd_namespace),
675  .xf_read = NULL,
676  .xf_decor = {
678  }
679  };
680 #if !defined(__KERNEL__)
682 #endif
683 
684  _m0_cob_domain._child[5] = (struct m0_xcode_field) {
685  .xf_name = "cd_fileattr_basic",
686 #ifdef __KERNEL__
687  .xf_type = &M0_XT_VOID,
688 #else
689 
690  .xf_type = m0_be_btree_xc,
691 #endif
692  .xf_tag = 0,
693  .xf_opaque = NULL,
694  .xf_offset = offsetof(struct m0_cob_domain, cd_fileattr_basic),
695  .xf_read = NULL,
696  .xf_decor = {
698  }
699  };
700 #if !defined(__KERNEL__)
702 #endif
703 
704  _m0_cob_domain._child[6] = (struct m0_xcode_field) {
705  .xf_name = "cd_fileattr_omg",
706 #ifdef __KERNEL__
707  .xf_type = &M0_XT_VOID,
708 #else
709 
710  .xf_type = m0_be_btree_xc,
711 #endif
712  .xf_tag = 0,
713  .xf_opaque = NULL,
714  .xf_offset = offsetof(struct m0_cob_domain, cd_fileattr_omg),
715  .xf_read = NULL,
716  .xf_decor = {
718  }
719  };
720 #if !defined(__KERNEL__)
722 #endif
723 
724  _m0_cob_domain._child[7] = (struct m0_xcode_field) {
725  .xf_name = "cd_fileattr_ea",
726 #ifdef __KERNEL__
727  .xf_type = &M0_XT_VOID,
728 #else
729 
730  .xf_type = m0_be_btree_xc,
731 #endif
732  .xf_tag = 0,
733  .xf_opaque = NULL,
734  .xf_offset = offsetof(struct m0_cob_domain, cd_fileattr_ea),
735  .xf_read = NULL,
736  .xf_decor = {
738  }
739  };
740 #if !defined(__KERNEL__)
742 #endif
743 
744  _m0_cob_domain._child[8] = (struct m0_xcode_field) {
745  .xf_name = "cd_bytecount",
746 #ifdef __KERNEL__
747  .xf_type = &M0_XT_VOID,
748 #else
749 
750  .xf_type = m0_be_btree_xc,
751 #endif
752  .xf_tag = 0,
753  .xf_opaque = NULL,
754  .xf_offset = offsetof(struct m0_cob_domain, cd_bytecount),
755  .xf_read = NULL,
756  .xf_decor = {
758  }
759  };
760 #if !defined(__KERNEL__)
762 #endif
763 
764  _m0_cob_domain._child[9] = (struct m0_xcode_field) {
765  .xf_name = "cd_lock",
766 #ifdef __KERNEL__
767  .xf_type = &M0_XT_VOID,
768 #else
769 
770  .xf_type = m0_be_rwlock_xc,
771 #endif
772  .xf_tag = 0,
773  .xf_opaque = NULL,
774  .xf_offset = offsetof(struct m0_cob_domain, cd_lock),
775  .xf_read = NULL,
776  .xf_decor = {
778  }
779  };
780 #if !defined(__KERNEL__)
782 #endif
783 
785 }
786 #endif
787 
788 #if !defined(__KERNEL__)
790 {
791  _m0_cob_domain_id._child[0] = (struct m0_xcode_field) {
792  .xf_name = "id",
793 
794  .xf_type = &M0_XT_U64,
795 
796  .xf_tag = 0,
797  .xf_opaque = NULL,
798  .xf_offset = offsetof(struct m0_cob_domain_id, id),
799  .xf_read = NULL,
800  .xf_decor = {
802  }
803  };
804  m0_xc_u64_init();
805 
807 }
808 #endif
809 
810 #if !defined(__KERNEL__)
811 M0_INTERNAL void m0_xc_m0_cob_nskey_struct_init(void)
812 {
813  _m0_cob_nskey._child[0] = (struct m0_xcode_field) {
814  .xf_name = "cnk_pfid",
815 
816  .xf_type = m0_fid_xc,
817 
818  .xf_tag = 0,
819  .xf_opaque = NULL,
820  .xf_offset = offsetof(struct m0_cob_nskey, cnk_pfid),
821  .xf_read = NULL,
822  .xf_decor = {
824  }
825  };
827 
828  _m0_cob_nskey._child[1] = (struct m0_xcode_field) {
829  .xf_name = "cnk_name",
830 #ifdef __KERNEL__
831  .xf_type = &M0_XT_VOID,
832 #else
833 
834  .xf_type = m0_bitstring_xc,
835 #endif
836  .xf_tag = 0,
837  .xf_opaque = NULL,
838  .xf_offset = offsetof(struct m0_cob_nskey, cnk_name),
839  .xf_read = NULL,
840  .xf_decor = {
842  }
843  };
844 #if !defined(__KERNEL__)
846 #endif
847 
849 }
850 #endif
851 
852 #if !defined(__KERNEL__)
853 M0_INTERNAL void m0_xc_m0_cob_nsrec_struct_init(void)
854 {
855  _m0_cob_nsrec._child[0] = (struct m0_xcode_field) {
856  .xf_name = "cnr_header",
857 
858  .xf_type = m0_format_header_xc,
859 
860  .xf_tag = 0,
861  .xf_opaque = NULL,
862  .xf_offset = offsetof(struct m0_cob_nsrec, cnr_header),
863  .xf_read = NULL,
864  .xf_decor = {
866  }
867  };
869 
870  _m0_cob_nsrec._child[1] = (struct m0_xcode_field) {
871  .xf_name = "cnr_fid",
872 
873  .xf_type = m0_fid_xc,
874 
875  .xf_tag = 0,
876  .xf_opaque = NULL,
877  .xf_offset = offsetof(struct m0_cob_nsrec, cnr_fid),
878  .xf_read = NULL,
879  .xf_decor = {
881  }
882  };
884 
885  _m0_cob_nsrec._child[2] = (struct m0_xcode_field) {
886  .xf_name = "cnr_linkno",
887 
888  .xf_type = &M0_XT_U32,
889 
890  .xf_tag = 0,
891  .xf_opaque = NULL,
892  .xf_offset = offsetof(struct m0_cob_nsrec, cnr_linkno),
893  .xf_read = NULL,
894  .xf_decor = {
896  }
897  };
898  m0_xc_u32_init();
899 
900  _m0_cob_nsrec._child[3] = (struct m0_xcode_field) {
901  .xf_name = "cnr_nlink",
902 
903  .xf_type = &M0_XT_U32,
904 
905  .xf_tag = 0,
906  .xf_opaque = NULL,
907  .xf_offset = offsetof(struct m0_cob_nsrec, cnr_nlink),
908  .xf_read = NULL,
909  .xf_decor = {
911  }
912  };
913  m0_xc_u32_init();
914 
915  _m0_cob_nsrec._child[4] = (struct m0_xcode_field) {
916  .xf_name = "cnr_cntr",
917 
918  .xf_type = &M0_XT_U32,
919 
920  .xf_tag = 0,
921  .xf_opaque = NULL,
922  .xf_offset = offsetof(struct m0_cob_nsrec, cnr_cntr),
923  .xf_read = NULL,
924  .xf_decor = {
926  }
927  };
928  m0_xc_u32_init();
929 
930  _m0_cob_nsrec._child[5] = (struct m0_xcode_field) {
931  .xf_name = "cnr_pad",
932 
933  .xf_type = &M0_XT_U8,
934 
935  .xf_tag = 4,
936  .xf_opaque = NULL,
937  .xf_offset = offsetof(struct m0_cob_nsrec, cnr_pad),
938  .xf_read = NULL,
939  .xf_decor = {
941  }
942  };
943  m0_xc_u8_init();
944 
945  _m0_cob_nsrec._child[6] = (struct m0_xcode_field) {
946  .xf_name = "cnr_omgid",
947 
948  .xf_type = &M0_XT_U64,
949 
950  .xf_tag = 0,
951  .xf_opaque = NULL,
952  .xf_offset = offsetof(struct m0_cob_nsrec, cnr_omgid),
953  .xf_read = NULL,
954  .xf_decor = {
956  }
957  };
958  m0_xc_u64_init();
959 
960  _m0_cob_nsrec._child[7] = (struct m0_xcode_field) {
961  .xf_name = "cnr_size",
962 
963  .xf_type = &M0_XT_U64,
964 
965  .xf_tag = 0,
966  .xf_opaque = NULL,
967  .xf_offset = offsetof(struct m0_cob_nsrec, cnr_size),
968  .xf_read = NULL,
969  .xf_decor = {
971  }
972  };
973  m0_xc_u64_init();
974 
975  _m0_cob_nsrec._child[8] = (struct m0_xcode_field) {
976  .xf_name = "cnr_bytecount",
977 
978  .xf_type = &M0_XT_U64,
979 
980  .xf_tag = 0,
981  .xf_opaque = NULL,
982  .xf_offset = offsetof(struct m0_cob_nsrec, cnr_bytecount),
983  .xf_read = NULL,
984  .xf_decor = {
986  }
987  };
988  m0_xc_u64_init();
989 
990  _m0_cob_nsrec._child[9] = (struct m0_xcode_field) {
991  .xf_name = "cnr_blksize",
992 
993  .xf_type = &M0_XT_U64,
994 
995  .xf_tag = 0,
996  .xf_opaque = NULL,
997  .xf_offset = offsetof(struct m0_cob_nsrec, cnr_blksize),
998  .xf_read = NULL,
999  .xf_decor = {
1001  }
1002  };
1003  m0_xc_u64_init();
1004 
1005  _m0_cob_nsrec._child[10] = (struct m0_xcode_field) {
1006  .xf_name = "cnr_blocks",
1007 
1008  .xf_type = &M0_XT_U64,
1009 
1010  .xf_tag = 0,
1011  .xf_opaque = NULL,
1012  .xf_offset = offsetof(struct m0_cob_nsrec, cnr_blocks),
1013  .xf_read = NULL,
1014  .xf_decor = {
1016  }
1017  };
1018  m0_xc_u64_init();
1019 
1020  _m0_cob_nsrec._child[11] = (struct m0_xcode_field) {
1021  .xf_name = "cnr_atime",
1022 
1023  .xf_type = &M0_XT_U64,
1024 
1025  .xf_tag = 0,
1026  .xf_opaque = NULL,
1027  .xf_offset = offsetof(struct m0_cob_nsrec, cnr_atime),
1028  .xf_read = NULL,
1029  .xf_decor = {
1031  }
1032  };
1033  m0_xc_u64_init();
1034 
1035  _m0_cob_nsrec._child[12] = (struct m0_xcode_field) {
1036  .xf_name = "cnr_mtime",
1037 
1038  .xf_type = &M0_XT_U64,
1039 
1040  .xf_tag = 0,
1041  .xf_opaque = NULL,
1042  .xf_offset = offsetof(struct m0_cob_nsrec, cnr_mtime),
1043  .xf_read = NULL,
1044  .xf_decor = {
1046  }
1047  };
1048  m0_xc_u64_init();
1049 
1050  _m0_cob_nsrec._child[13] = (struct m0_xcode_field) {
1051  .xf_name = "cnr_ctime",
1052 
1053  .xf_type = &M0_XT_U64,
1054 
1055  .xf_tag = 0,
1056  .xf_opaque = NULL,
1057  .xf_offset = offsetof(struct m0_cob_nsrec, cnr_ctime),
1058  .xf_read = NULL,
1059  .xf_decor = {
1061  }
1062  };
1063  m0_xc_u64_init();
1064 
1065  _m0_cob_nsrec._child[14] = (struct m0_xcode_field) {
1066  .xf_name = "cnr_lid",
1067 
1068  .xf_type = &M0_XT_U64,
1069 
1070  .xf_tag = 0,
1071  .xf_opaque = NULL,
1072  .xf_offset = offsetof(struct m0_cob_nsrec, cnr_lid),
1073  .xf_read = NULL,
1074  .xf_decor = {
1076  }
1077  };
1078  m0_xc_u64_init();
1079 
1080  _m0_cob_nsrec._child[15] = (struct m0_xcode_field) {
1081  .xf_name = "cnr_pver",
1082 
1083  .xf_type = m0_fid_xc,
1084 
1085  .xf_tag = 0,
1086  .xf_opaque = NULL,
1087  .xf_offset = offsetof(struct m0_cob_nsrec, cnr_pver),
1088  .xf_read = NULL,
1089  .xf_decor = {
1091  }
1092  };
1094 
1095  _m0_cob_nsrec._child[16] = (struct m0_xcode_field) {
1096  .xf_name = "cnr_footer",
1097 
1098  .xf_type = m0_format_footer_xc,
1099 
1100  .xf_tag = 0,
1101  .xf_opaque = NULL,
1102  .xf_offset = offsetof(struct m0_cob_nsrec, cnr_footer),
1103  .xf_read = NULL,
1104  .xf_decor = {
1106  }
1107  };
1109 
1111 }
1112 #endif
1113 
1114 #if !defined(__KERNEL__)
1115 M0_INTERNAL void m0_xc_m0_cob_oikey_struct_init(void)
1116 {
1117  _m0_cob_oikey._child[0] = (struct m0_xcode_field) {
1118  .xf_name = "cok_fid",
1119 
1120  .xf_type = m0_fid_xc,
1121 
1122  .xf_tag = 0,
1123  .xf_opaque = NULL,
1124  .xf_offset = offsetof(struct m0_cob_oikey, cok_fid),
1125  .xf_read = NULL,
1126  .xf_decor = {
1128  }
1129  };
1131 
1132  _m0_cob_oikey._child[1] = (struct m0_xcode_field) {
1133  .xf_name = "cok_linkno",
1134 
1135  .xf_type = &M0_XT_U32,
1136 
1137  .xf_tag = 0,
1138  .xf_opaque = NULL,
1139  .xf_offset = offsetof(struct m0_cob_oikey, cok_linkno),
1140  .xf_read = NULL,
1141  .xf_decor = {
1143  }
1144  };
1145  m0_xc_u32_init();
1146 
1148 }
1149 #endif
1150 
1151 #if !defined(__KERNEL__)
1152 M0_INTERNAL void m0_xc_m0_cob_fabkey_struct_init(void)
1153 {
1154  _m0_cob_fabkey._child[0] = (struct m0_xcode_field) {
1155  .xf_name = "cfb_fid",
1156 
1157  .xf_type = m0_fid_xc,
1158 
1159  .xf_tag = 0,
1160  .xf_opaque = NULL,
1161  .xf_offset = offsetof(struct m0_cob_fabkey, cfb_fid),
1162  .xf_read = NULL,
1163  .xf_decor = {
1165  }
1166  };
1168 
1170 }
1171 #endif
1172 
1173 #if !defined(__KERNEL__)
1174 M0_INTERNAL void m0_xc_m0_cob_fabrec_struct_init(void)
1175 {
1176  _m0_cob_fabrec._child[0] = (struct m0_xcode_field) {
1177  .xf_name = "cfb_pver",
1178 
1179  .xf_type = m0_fid_xc,
1180 
1181  .xf_tag = 0,
1182  .xf_opaque = NULL,
1183  .xf_offset = offsetof(struct m0_cob_fabrec, cfb_pver),
1184  .xf_read = NULL,
1185  .xf_decor = {
1187  }
1188  };
1190 
1191  _m0_cob_fabrec._child[1] = (struct m0_xcode_field) {
1192  .xf_name = "cfb_version",
1193 
1194  .xf_type = &M0_XT_U64,
1195 
1196  .xf_tag = 0,
1197  .xf_opaque = NULL,
1198  .xf_offset = offsetof(struct m0_cob_fabrec, cfb_version),
1199  .xf_read = NULL,
1200  .xf_decor = {
1202  }
1203  };
1204  m0_xc_u64_init();
1205 
1206  _m0_cob_fabrec._child[2] = (struct m0_xcode_field) {
1207  .xf_name = "cfb_layoutid",
1208 
1209  .xf_type = &M0_XT_U64,
1210 
1211  .xf_tag = 0,
1212  .xf_opaque = NULL,
1213  .xf_offset = offsetof(struct m0_cob_fabrec, cfb_layoutid),
1214  .xf_read = NULL,
1215  .xf_decor = {
1217  }
1218  };
1219  m0_xc_u64_init();
1220 
1221  _m0_cob_fabrec._child[3] = (struct m0_xcode_field) {
1222  .xf_name = "cfb_linklen",
1223 
1224  .xf_type = &M0_XT_U32,
1225 
1226  .xf_tag = 0,
1227  .xf_opaque = NULL,
1228  .xf_offset = offsetof(struct m0_cob_fabrec, cfb_linklen),
1229  .xf_read = NULL,
1230  .xf_decor = {
1232  }
1233  };
1234  m0_xc_u32_init();
1235 
1236  _m0_cob_fabrec._child[4] = (struct m0_xcode_field) {
1237  .xf_name = "cfb_link",
1238 
1239  .xf_type = &M0_XT_VOID,
1240 
1241  .xf_tag = 0,
1242  .xf_opaque = NULL,
1243  .xf_offset = offsetof(struct m0_cob_fabrec, cfb_link),
1244  .xf_read = NULL,
1245  .xf_decor = {
1247  }
1248  };
1249  m0_xc_void_init();
1250 
1252 }
1253 #endif
1254 
1255 #if !defined(__KERNEL__)
1256 M0_INTERNAL void m0_xc_m0_cob_omgkey_struct_init(void)
1257 {
1258  _m0_cob_omgkey._child[0] = (struct m0_xcode_field) {
1259  .xf_name = "cok_omgid",
1260 
1261  .xf_type = &M0_XT_U64,
1262 
1263  .xf_tag = 0,
1264  .xf_opaque = NULL,
1265  .xf_offset = offsetof(struct m0_cob_omgkey, cok_omgid),
1266  .xf_read = NULL,
1267  .xf_decor = {
1269  }
1270  };
1271  m0_xc_u64_init();
1272 
1274 }
1275 #endif
1276 
1277 #if !defined(__KERNEL__)
1278 M0_INTERNAL void m0_xc_m0_cob_omgrec_struct_init(void)
1279 {
1280  _m0_cob_omgrec._child[0] = (struct m0_xcode_field) {
1281  .xf_name = "cor_uid",
1282 
1283  .xf_type = &M0_XT_U32,
1284 
1285  .xf_tag = 0,
1286  .xf_opaque = NULL,
1287  .xf_offset = offsetof(struct m0_cob_omgrec, cor_uid),
1288  .xf_read = NULL,
1289  .xf_decor = {
1291  }
1292  };
1293  m0_xc_u32_init();
1294 
1295  _m0_cob_omgrec._child[1] = (struct m0_xcode_field) {
1296  .xf_name = "cor_mode",
1297 
1298  .xf_type = &M0_XT_U32,
1299 
1300  .xf_tag = 0,
1301  .xf_opaque = NULL,
1302  .xf_offset = offsetof(struct m0_cob_omgrec, cor_mode),
1303  .xf_read = NULL,
1304  .xf_decor = {
1306  }
1307  };
1308  m0_xc_u32_init();
1309 
1310  _m0_cob_omgrec._child[2] = (struct m0_xcode_field) {
1311  .xf_name = "cor_gid",
1312 
1313  .xf_type = &M0_XT_U32,
1314 
1315  .xf_tag = 0,
1316  .xf_opaque = NULL,
1317  .xf_offset = offsetof(struct m0_cob_omgrec, cor_gid),
1318  .xf_read = NULL,
1319  .xf_decor = {
1321  }
1322  };
1323  m0_xc_u32_init();
1324 
1326 }
1327 #endif
1328 
1329 #if !defined(__KERNEL__)
1330 M0_INTERNAL void m0_xc_m0_cob_eakey_struct_init(void)
1331 {
1332  _m0_cob_eakey._child[0] = (struct m0_xcode_field) {
1333  .xf_name = "cek_fid",
1334 
1335  .xf_type = m0_fid_xc,
1336 
1337  .xf_tag = 0,
1338  .xf_opaque = NULL,
1339  .xf_offset = offsetof(struct m0_cob_eakey, cek_fid),
1340  .xf_read = NULL,
1341  .xf_decor = {
1343  }
1344  };
1346 
1347  _m0_cob_eakey._child[1] = (struct m0_xcode_field) {
1348  .xf_name = "cek_name",
1349 #ifdef __KERNEL__
1350  .xf_type = &M0_XT_VOID,
1351 #else
1352 
1353  .xf_type = m0_bitstring_xc,
1354 #endif
1355  .xf_tag = 0,
1356  .xf_opaque = NULL,
1357  .xf_offset = offsetof(struct m0_cob_eakey, cek_name),
1358  .xf_read = NULL,
1359  .xf_decor = {
1361  }
1362  };
1363 #if !defined(__KERNEL__)
1365 #endif
1366 
1368 }
1369 #endif
1370 
1371 #if !defined(__KERNEL__)
1372 M0_INTERNAL void m0_xc_m0_cob_earec_struct_init(void)
1373 {
1374  _m0_cob_earec._child[0] = (struct m0_xcode_field) {
1375  .xf_name = "cer_size",
1376 
1377  .xf_type = &M0_XT_U32,
1378 
1379  .xf_tag = 0,
1380  .xf_opaque = NULL,
1381  .xf_offset = offsetof(struct m0_cob_earec, cer_size),
1382  .xf_read = NULL,
1383  .xf_decor = {
1385  }
1386  };
1387  m0_xc_u32_init();
1388 
1389  _m0_cob_earec._child[1] = (struct m0_xcode_field) {
1390  .xf_name = "cer_body",
1391 
1392  .xf_type = &M0_XT_VOID,
1393 
1394  .xf_tag = 0,
1395  .xf_opaque = NULL,
1396  .xf_offset = offsetof(struct m0_cob_earec, cer_body),
1397  .xf_read = NULL,
1398  .xf_decor = {
1400  }
1401  };
1402  m0_xc_void_init();
1403 
1405 }
1406 #endif
1407 
1408 #if !defined(__KERNEL__)
1409 M0_INTERNAL void m0_xc_m0_cob_bckey_struct_init(void)
1410 {
1411  _m0_cob_bckey._child[0] = (struct m0_xcode_field) {
1412  .xf_name = "cbk_pfid",
1413 
1414  .xf_type = m0_fid_xc,
1415 
1416  .xf_tag = 0,
1417  .xf_opaque = NULL,
1418  .xf_offset = offsetof(struct m0_cob_bckey, cbk_pfid),
1419  .xf_read = NULL,
1420  .xf_decor = {
1422  }
1423  };
1425 
1426  _m0_cob_bckey._child[1] = (struct m0_xcode_field) {
1427  .xf_name = "cbk_user_id",
1428 
1429  .xf_type = &M0_XT_U64,
1430 
1431  .xf_tag = 0,
1432  .xf_opaque = NULL,
1433  .xf_offset = offsetof(struct m0_cob_bckey, cbk_user_id),
1434  .xf_read = NULL,
1435  .xf_decor = {
1437  }
1438  };
1439  m0_xc_u64_init();
1440 
1442 }
1443 #endif
1444 
1445 #if !defined(__KERNEL__)
1446 M0_INTERNAL void m0_xc_m0_cob_bcrec_struct_init(void)
1447 {
1448  _m0_cob_bcrec._child[0] = (struct m0_xcode_field) {
1449  .xf_name = "cbr_bytecount",
1450 
1451  .xf_type = &M0_XT_U64,
1452 
1453  .xf_tag = 0,
1454  .xf_opaque = NULL,
1455  .xf_offset = offsetof(struct m0_cob_bcrec, cbr_bytecount),
1456  .xf_read = NULL,
1457  .xf_decor = {
1459  }
1460  };
1461  m0_xc_u64_init();
1462 
1463  _m0_cob_bcrec._child[1] = (struct m0_xcode_field) {
1464  .xf_name = "cbr_cob_objects",
1465 
1466  .xf_type = &M0_XT_U64,
1467 
1468  .xf_tag = 0,
1469  .xf_opaque = NULL,
1470  .xf_offset = offsetof(struct m0_cob_bcrec, cbr_cob_objects),
1471  .xf_read = NULL,
1472  .xf_decor = {
1474  }
1475  };
1476  m0_xc_u64_init();
1477 
1479 }
1480 #endif
1481 
1482 M0_INTERNAL void m0_xc_cob_cob_init(void)
1483 {
1484 #if !defined(__KERNEL__)
1486 #endif
1487 #if !defined(__KERNEL__)
1489 #endif
1490 #if !defined(__KERNEL__)
1492 #endif
1493 #if !defined(__KERNEL__)
1495 #endif
1496 #if !defined(__KERNEL__)
1498 #endif
1499 #if !defined(__KERNEL__)
1501 #endif
1502 #if !defined(__KERNEL__)
1504 #endif
1505 #if !defined(__KERNEL__)
1507 #endif
1508 #if !defined(__KERNEL__)
1510 #endif
1511 #if !defined(__KERNEL__)
1513 #endif
1514 #if !defined(__KERNEL__)
1516 #endif
1517 #if !defined(__KERNEL__)
1519 #endif
1520 #if !defined(__KERNEL__)
1522 #endif
1523 }
1524 
1525 M0_INTERNAL void m0_xc_cob_cob_fini(void)
1526 {
1527 }
struct m0_xcode_type _type
Definition: cob_xc.c:242
M0_INTERNAL void m0_xc_m0_cob_earec_struct_init(void)
Definition: cob_xc.c:1372
M0_INTERNAL void m0_xc_m0_be_rwlock_struct_init(void)
Definition: format_xc.c:284
uint64_t cnr_mtime
Definition: cob.h:427
struct m0_xcode_field _child[2]
Definition: cob_xc.c:224
uint32_t cnr_nlink
Definition: cob.h:418
struct m0_xcode_type * m0_cob_omgkey_xc
Definition: cob_xc.c:32
uint64_t cfb_version
Definition: cob.h:455
static struct _m0_cob_eakey_s _m0_cob_eakey
uint64_t cnr_size
Definition: cob.h:422
uint64_t cbk_user_id
Definition: cob.h:455
static struct _m0_cob_fabrec_s _m0_cob_fabrec
struct m0_xcode_type * m0_cob_earec_xc
Definition: cob_xc.c:41
#define NULL
Definition: misc.h:38
struct m0_xcode_field _child[17]
Definition: cob_xc.c:110
M0_INTERNAL void m0_xc_m0_cob_nsrec_struct_init(void)
Definition: cob_xc.c:853
uint64_t cnr_blocks
Definition: cob.h:425
struct m0_be_btree cd_object_index
Definition: cob.h:2387
M0_INTERNAL void m0_xc_m0_cob_omgrec_struct_init(void)
Definition: cob_xc.c:1278
struct m0_xcode_type _type
Definition: cob_xc.c:185
M0_INTERNAL void m0_xc_m0_format_footer_struct_init(void)
Definition: format_xc.c:226
M0_INTERNAL void m0_xc_m0_cob_domain_id_struct_init(void)
Definition: cob_xc.c:789
struct m0_xcode_field _child[2]
Definition: cob_xc.c:91
uint64_t cnr_blksize
Definition: cob.h:424
struct m0_xcode_type _type
Definition: cob_xc.c:166
M0_INTERNAL void m0_xc_m0_cob_fabrec_struct_init(void)
Definition: cob_xc.c:1174
static struct _m0_cob_omgkey_s _m0_cob_omgkey
struct m0_xcode_type * m0_be_btree_xc
Definition: btree_xc.c:11
struct m0_xcode_type _type
Definition: cob_xc.c:147
struct m0_xcode_type _type
Definition: cob_xc.c:109
struct m0_xcode_field xct_child[0]
Definition: xcode.h:345
uint64_t cnr_atime
Definition: cob.h:426
struct m0_format_footer cd_footer
Definition: cob.h:2382
static struct _m0_cob_nskey_s _m0_cob_nskey
M0_INTERNAL void m0_xc_m0_fid_struct_init(void)
Definition: fid_xc.c:64
uint64_t cok_omgid
Definition: cob.h:454
static struct _m0_cob_domain_s _m0_cob_domain
void m0_xc_void_init(void)
Definition: xcode.c:908
struct m0_fid cek_fid
Definition: cob.h:454
struct m0_be_btree cd_fileattr_basic
Definition: cob.h:2389
M0_INTERNAL void m0_xc_m0_be_btree_struct_init(void)
Definition: btree_xc.c:141
struct m0_be_btree cd_fileattr_ea
Definition: cob.h:2391
const char * xe_name
Definition: enum.h:58
uint32_t cnr_cntr
Definition: cob.h:419
struct m0_xcode_field _child[10]
Definition: cob_xc.c:53
char cer_body[0]
Definition: cob.h:455
struct m0_xcode_enum m0_xc_m0_cob_op_enum
Definition: cob_xc.c:584
uint32_t cnr_linkno
Definition: cob.h:412
struct m0_xcode_type * m0_cob_bckey_xc
Definition: cob_xc.c:44
M0_INTERNAL void m0_xc_m0_cob_fabkey_struct_init(void)
Definition: cob_xc.c:1152
struct m0_xcode_type _type
Definition: cob_xc.c:223
struct m0_xcode_type _type
Definition: cob_xc.c:52
struct m0_fid cbk_pfid
Definition: cob.h:454
M0_INTERNAL void m0_xc_m0_cob_domain_struct_init(void)
Definition: cob_xc.c:592
struct m0_xcode_type * m0_cob_nsrec_xc
Definition: cob_xc.c:20
static struct _m0_cob_bcrec_s _m0_cob_bcrec
uint32_t cok_linkno
Definition: cob.h:455
M0_INTERNAL void m0_xc_m0_cob_bcrec_struct_init(void)
Definition: cob_xc.c:1446
uint64_t cnr_omgid
Definition: cob.h:421
struct m0_format_header cnr_header
Definition: cob.h:410
struct m0_bitstring cnk_name
Definition: cob.h:329
struct m0_fid cok_fid
Definition: cob.h:454
M0_INTERNAL void m0_xc_m0_cob_nskey_struct_init(void)
Definition: cob_xc.c:811
const struct m0_xcode_type M0_XT_VOID
Definition: xcode.c:916
struct m0_xcode_field _child[1]
Definition: cob_xc.c:72
struct m0_xcode_type _type
Definition: cob_xc.c:128
struct m0_fid cfb_fid
Definition: cob.h:454
M0_INTERNAL void m0_xc_cob_cob_init(void)
Definition: cob_xc.c:1482
struct m0_xcode_type * m0_bitstring_xc
Definition: bitstring_xc.c:11
struct m0_xcode_field _child[1]
Definition: cob_xc.c:148
M0_INTERNAL void m0_xc_m0_bitstring_struct_init(void)
Definition: bitstring_xc.c:50
struct m0_be_rwlock cd_lock
Definition: cob.h:2393
struct m0_xcode_type * m0_cob_fabrec_xc
Definition: cob_xc.c:29
uint32_t cor_mode
Definition: cob.h:455
static struct _m0_cob_omgrec_s _m0_cob_omgrec
uint32_t cor_uid
Definition: cob.h:454
struct m0_xcode_field _child[3]
Definition: cob_xc.c:205
struct m0_xcode_type _type
Definition: cob_xc.c:204
struct m0_xcode_type * m0_cob_fabkey_xc
Definition: cob_xc.c:26
#define M0_POST(cond)
uint64_t cfb_layoutid
Definition: cob.h:456
bool m0_xcode_type_invariant(const struct m0_xcode_type *xt)
Definition: xcode.c:74
M0_INTERNAL void m0_xc_m0_format_header_struct_init(void)
Definition: format_xc.c:191
struct m0_xcode_type * m0_cob_bcrec_xc
Definition: cob_xc.c:47
struct m0_xcode_field _child[2]
Definition: cob_xc.c:281
struct m0_xcode_type * m0_cob_oikey_xc
Definition: cob_xc.c:23
void m0_xc_u64_init(void)
Definition: xcode.c:904
struct m0_xcode_type _type
Definition: cob_xc.c:280
M0_BASSERT(offsetof(struct _m0_cob_domain_s, _child[0])==offsetof(struct m0_xcode_type, xct_child[0]))
static struct _m0_cob_earec_s _m0_cob_earec
char cnr_pad[4]
Definition: cob.h:420
M0_INTERNAL void m0_xc_m0_cob_oikey_struct_init(void)
Definition: cob_xc.c:1115
struct m0_format_header cd_header
Definition: cob.h:2380
const struct m0_xcode_type M0_XT_U32
Definition: xcode.c:932
struct m0_xcode_field _child[2]
Definition: cob_xc.c:129
M0_INTERNAL void m0_xc_cob_cob_fini(void)
Definition: cob_xc.c:1525
enum m0_xcode_aggr xct_aggr
Definition: xcode.h:316
struct m0_fid cnr_pver
Definition: cob.h:430
struct m0_fid cfb_pver
Definition: cob.h:454
struct m0_xcode_type * m0_cob_nskey_xc
Definition: cob_xc.c:17
struct m0_xcode_type * m0_format_header_xc
Definition: format_xc.c:10
static struct _m0_cob_domain_id_s _m0_cob_domain_id
const struct m0_xcode_enum_val m0_cob_op_data[]
Definition: cob_xc.c:564
struct m0_xcode_field _child[1]
Definition: cob_xc.c:186
uint64_t cbr_bytecount
Definition: cob.h:454
struct m0_xcode_type * m0_cob_domain_id_xc
Definition: cob_xc.c:14
struct m0_xcode_type * m0_cob_domain_xc
Definition: cob_xc.c:11
M0_INTERNAL void m0_xc_m0_cob_omgkey_struct_init(void)
Definition: cob_xc.c:1256
uint32_t cer_size
Definition: cob.h:454
static struct _m0_cob_nsrec_s _m0_cob_nsrec
struct m0_xcode_type _type
Definition: cob_xc.c:71
struct m0_xcode_field _child[2]
Definition: cob_xc.c:262
const struct m0_xcode_type M0_XT_U8
Definition: xcode.c:924
M0_INTERNAL void m0_xc_m0_cob_bckey_struct_init(void)
Definition: cob_xc.c:1409
static struct _m0_cob_bckey_s _m0_cob_bckey
static struct _m0_cob_fabkey_s _m0_cob_fabkey
void m0_xc_u8_init(void)
Definition: xcode.c:892
void m0_xc_u32_init(void)
Definition: xcode.c:900
uint64_t cbr_cob_objects
Definition: cob.h:455
struct m0_xcode_type * m0_cob_eakey_xc
Definition: cob_xc.c:38
struct m0_be_btree cd_fileattr_omg
Definition: cob.h:2390
struct m0_xcode_field _child[2]
Definition: cob_xc.c:243
struct m0_xcode_type * m0_cob_omgrec_xc
Definition: cob_xc.c:35
uint32_t cor_gid
Definition: cob.h:456
const char * xf_name
Definition: xcode.h:251
struct m0_bitstring cek_name
Definition: cob.h:455
struct m0_xcode_type * m0_fid_xc
Definition: fid_xc.c:10
uint64_t cnr_ctime
Definition: cob.h:428
static struct _m0_cob_oikey_s _m0_cob_oikey
uint32_t cfb_linklen
Definition: cob.h:457
const struct m0_xcode_type M0_XT_U64
Definition: xcode.c:940
M0_INTERNAL void m0_xc_m0_cob_eakey_struct_init(void)
Definition: cob_xc.c:1330
struct m0_be_btree cd_bytecount
Definition: cob.h:2392
#define offsetof(typ, memb)
Definition: misc.h:29
struct m0_fid cnk_pfid
Definition: cob.h:328
struct m0_xcode_type _type
Definition: cob_xc.c:90
struct m0_xcode_field _child[5]
Definition: cob_xc.c:167
struct m0_format_footer cnr_footer
Definition: cob.h:431
struct m0_cob_domain_id cd_id
Definition: cob.h:2381
uint64_t cnr_lid
Definition: cob.h:429
struct m0_xcode_type * m0_be_rwlock_xc
Definition: format_xc.c:16
uint64_t cnr_bytecount
Definition: cob.h:423
struct m0_xcode_type _type
Definition: cob_xc.c:261
struct m0_be_btree cd_namespace
Definition: cob.h:2388
struct m0_fid cnr_fid
Definition: cob.h:411
char cfb_link[0]
Definition: cob.h:458
struct m0_xcode_type * m0_format_footer_xc
Definition: format_xc.c:11