-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathH5VL_rlo.c
5196 lines (4246 loc) · 180 KB
/
H5VL_rlo.c
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
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* All rights reserved. *
* *
* This file is part of HDF5. The full HDF5 copyright notice, including *
* terms governing use, modification, and redistribution, is contained in *
* the COPYING file, which can be found at the root of the source code *
* distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. *
* If you do not have access to either file, you may request a copy from *
* [email protected]. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/*
* Purpose: This is a "pass through" VOL connector, which forwards each
* VOL callback to an underlying connector.
*
* It is designed as an example VOL connector for developers to
* use when creating new connectors, especially connectors that
* are outside of the HDF5 library. As such, it should _NOT_
* include _any_ private HDF5 header files. This connector should
* therefore only make public HDF5 API calls and use standard C /
* POSIX calls.
*
* Note that the HDF5 error stack must be preserved on code paths
* that could be invoked when the underlying VOL connector's
* callback can fail.
*
*/
/* Header files needed */
/* Do NOT include private HDF5 files here! */
#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* Public HDF5 file */
#include "hdf5.h"
/* This connector's header */
#include "H5VL_rlo.h"
/* Interfaces to other components */
//#include "VotingManager.h"
//#include "LedgerManager.h"
#include "metadata_update_helper.h"
#include "VotingPlugin_RLO.h" //plugin
/**********/
/* Macros */
/**********/
/* Whether to display log messge when callback is invoked */
/* (Uncomment to enable) */
/* #define ENABLE_RLO_PASSTHRU_LOGGING */
/* Hack for missing va_copy() in old Visual Studio editions
* (from H5win2_defs.h - used on VS2012 and earlier)
*/
#if defined(_WIN32) && defined(_MSC_VER) && (_MSC_VER < 1800)
#define va_copy(D,S) ((D) = (S))
#endif
/*************************/
/* Globals for debugging */
/*************************/
extern int MY_RANK_DEBUG;
/************/
/* Typedefs */
/************/
// For parent object type
typedef enum {
VL_FILE, VL_GROUP,
VL_DATASET, VL_ATTRIBUTES, VL_NAMED_DATATYPE,
VL_INVALID
} rlo_obj_type_t;
// Types of operations on the container
typedef enum {
FILE_CLOSE,
DS_CREATE, DS_OPEN, DS_EXTEND, DS_CLOSE,
GROUP_CREATE, GROUP_OPEN, GROUP_CLOSE,
ATTR_CREATE, ATTR_WRITE,
DT_COMMIT
} VL_op_type;
// "Proposal execution context" for operations on a file
typedef struct prop_ctx {
/* # of objects sharing this context */
unsigned int ref_count;
/* Constant, set at file open / create */
void *under_file; // "Under object" for the file, after RLO connector has opened it
hid_t under_vol_id; // Local, same per file
int comm_size; // # of ranks in file's communicator
int my_rank; // My rank in file's communicator
metadata_manager *mm; // Metadata manager for the file
/* File closing information */
unsigned close_count; // # of file close operations seen, from all ranks
hbool_t is_collective;
void* under_obj; //already opened obj
/* OUT, set in execution callback and retrieved in VOL callback */
void *resulting_obj_out; //set with cb_exe results
} prop_ctx;
/* The pass through VOL info object */
typedef struct H5VL_rlo_pass_through_t {//envelop A
/* Specific information for a particular object */
rlo_obj_type_t obj_type; /* Type of object */
void *under_object; /* Info object for underlying VOL connector */
// ("B's envelope")
/* Shared information, for all objects */
prop_ctx *p_ctx; // Pointer to shared context info */
} H5VL_rlo_pass_through_t;
/* The pass through VOL wrapper context */
typedef struct H5VL_rlo_pass_through_wrap_ctx_t {//A's manual
/* For this VOL connector */
prop_ctx *p_ctx; // Shared context for operations on a file
/* From underlying VOL connector */
void *under_wrap_ctx; /* Object wrapping context for under VOL */
// ("B's manual")
} H5VL_rlo_pass_through_wrap_ctx_t;
/********************* */
/* Function prototypes */
/********************* */
/* Helper routines */
static herr_t H5VL_rlo_pass_through_file_specific_reissue(void *obj, hid_t connector_id,
H5VL_file_specific_t specific_type, hid_t dxpl_id, void **req, ...);
static herr_t H5VL_rlo_pass_through_request_specific_reissue(void *obj, hid_t connector_id,
H5VL_request_specific_t specific_type, ...);
static herr_t H5VL_rlo_pass_through_link_create_reissue(H5VL_link_create_type_t create_type,
void *obj, const H5VL_loc_params_t *loc_params, hid_t connector_id,
hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req, ...);
static H5VL_rlo_pass_through_t *H5VL_rlo_pass_through_new_obj(void *under_obj, rlo_obj_type_t obj_type,
prop_ctx *p_ctx);
static herr_t H5VL_rlo_pass_through_free_obj(H5VL_rlo_pass_through_t *obj);
/* "Management" callbacks */
static herr_t H5VL_rlo_pass_through_init(hid_t vipl_id);
static herr_t H5VL_rlo_pass_through_term(void);
/* VOL info callbacks */
static void *H5VL_rlo_pass_through_info_copy(const void *info);
static herr_t H5VL_rlo_pass_through_info_cmp(int *cmp_value, const void *info1, const void *info2);
static herr_t H5VL_rlo_pass_through_info_free(void *info);
static herr_t H5VL_rlo_pass_through_info_to_str(const void *info, char **str);
static herr_t H5VL_rlo_pass_through_str_to_info(const char *str, void **info);
/* VOL object wrap / retrieval callbacks */
static void *H5VL_rlo_pass_through_get_object(const void *obj);
static herr_t H5VL_rlo_pass_through_get_wrap_ctx(const void *obj, void **wrap_ctx);
static void *H5VL_rlo_pass_through_wrap_object(void *obj, H5I_type_t obj_type,
void *wrap_ctx);
static void *H5VL_rlo_pass_through_unwrap_object(void *obj);
static herr_t H5VL_rlo_pass_through_free_wrap_ctx(void *obj);
/* Attribute callbacks */
static void *H5VL_rlo_pass_through_attr_create(void *obj, const H5VL_loc_params_t *loc_params, const char *name, hid_t type_id, hid_t space_id, hid_t acpl_id, hid_t aapl_id, hid_t dxpl_id, void **req);
static void *H5VL_rlo_pass_through_attr_open(void *obj, const H5VL_loc_params_t *loc_params, const char *name, hid_t aapl_id, hid_t dxpl_id, void **req);
static herr_t H5VL_rlo_pass_through_attr_read(void *attr, hid_t mem_type_id, void *buf, hid_t dxpl_id, void **req);
static herr_t H5VL_rlo_pass_through_attr_write(void *attr, hid_t mem_type_id, const void *buf, hid_t dxpl_id, void **req);
static herr_t H5VL_rlo_pass_through_attr_get(void *obj, H5VL_attr_get_t get_type, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_attr_specific(void *obj, const H5VL_loc_params_t *loc_params, H5VL_attr_specific_t specific_type, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_attr_optional(void *obj, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_attr_close(void *attr, hid_t dxpl_id, void **req);
/* Dataset callbacks */
static void *H5VL_rlo_pass_through_dataset_create(void *obj, const H5VL_loc_params_t *loc_params, const char *name, hid_t lcpl_id, hid_t type_id, hid_t space_id, hid_t dcpl_id, hid_t dapl_id, hid_t dxpl_id, void **req);
static void *H5VL_rlo_pass_through_dataset_open(void *obj, const H5VL_loc_params_t *loc_params, const char *name, hid_t dapl_id, hid_t dxpl_id, void **req);
static herr_t H5VL_rlo_pass_through_dataset_read(void *dset, hid_t mem_type_id, hid_t mem_space_id,
hid_t file_space_id, hid_t plist_id, void *buf, void **req);
static herr_t H5VL_rlo_pass_through_dataset_write(void *dset, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t plist_id, const void *buf, void **req);
static herr_t H5VL_rlo_pass_through_dataset_get(void *dset, H5VL_dataset_get_t get_type, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_dataset_specific(void *obj, H5VL_dataset_specific_t specific_type, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_dataset_optional(void *obj, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_dataset_close(void *dset, hid_t dxpl_id, void **req);
/* Datatype callbacks */
static void *H5VL_rlo_pass_through_datatype_commit(void *obj, const H5VL_loc_params_t *loc_params, const char *name, hid_t type_id, hid_t lcpl_id, hid_t tcpl_id, hid_t tapl_id, hid_t dxpl_id, void **req);
static void *H5VL_rlo_pass_through_datatype_open(void *obj, const H5VL_loc_params_t *loc_params, const char *name, hid_t tapl_id, hid_t dxpl_id, void **req);
static herr_t H5VL_rlo_pass_through_datatype_get(void *dt, H5VL_datatype_get_t get_type, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_datatype_specific(void *obj, H5VL_datatype_specific_t specific_type, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_datatype_optional(void *obj, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_datatype_close(void *dt, hid_t dxpl_id, void **req);
/* File callbacks */
static void *H5VL_rlo_pass_through_file_create(const char *name, unsigned flags, hid_t fcpl_id, hid_t fapl_id, hid_t dxpl_id, void **req);
static void *H5VL_rlo_pass_through_file_open(const char *name, unsigned flags, hid_t fapl_id, hid_t dxpl_id, void **req);
static herr_t H5VL_rlo_pass_through_file_get(void *file, H5VL_file_get_t get_type, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_file_specific(void *file, H5VL_file_specific_t specific_type, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_file_optional(void *file, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_file_close(void *file, hid_t dxpl_id, void **req);
/* Group callbacks */
static void *H5VL_rlo_pass_through_group_create(void *obj, const H5VL_loc_params_t *loc_params, const char *name, hid_t lcpl_id, hid_t gcpl_id, hid_t gapl_id, hid_t dxpl_id, void **req);
static void *H5VL_rlo_pass_through_group_open(void *obj, const H5VL_loc_params_t *loc_params, const char *name, hid_t gapl_id, hid_t dxpl_id, void **req);
static herr_t H5VL_rlo_pass_through_group_get(void *obj, H5VL_group_get_t get_type, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_group_specific(void *obj, H5VL_group_specific_t specific_type, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_group_optional(void *obj, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_group_close(void *grp, hid_t dxpl_id, void **req);
/* Link callbacks */
static herr_t H5VL_rlo_pass_through_link_create(H5VL_link_create_type_t create_type, void *obj, const H5VL_loc_params_t *loc_params, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_link_copy(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj, const H5VL_loc_params_t *loc_params2, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req);
static herr_t H5VL_rlo_pass_through_link_move(void *src_obj, const H5VL_loc_params_t *loc_params1, void *dst_obj, const H5VL_loc_params_t *loc_params2, hid_t lcpl_id, hid_t lapl_id, hid_t dxpl_id, void **req);
static herr_t H5VL_rlo_pass_through_link_get(void *obj, const H5VL_loc_params_t *loc_params, H5VL_link_get_t get_type, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_link_specific(void *obj, const H5VL_loc_params_t *loc_params, H5VL_link_specific_t specific_type, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_link_optional(void *obj, hid_t dxpl_id, void **req, va_list arguments);
/* Object callbacks */
static void *H5VL_rlo_pass_through_object_open(void *obj, const H5VL_loc_params_t *loc_params, H5I_type_t *opened_type, hid_t dxpl_id, void **req);
static herr_t H5VL_rlo_pass_through_object_copy(void *src_obj, const H5VL_loc_params_t *src_loc_params, const char *src_name, void *dst_obj, const H5VL_loc_params_t *dst_loc_params, const char *dst_name, hid_t ocpypl_id, hid_t lcpl_id, hid_t dxpl_id, void **req);
static herr_t H5VL_rlo_pass_through_object_get(void *obj, const H5VL_loc_params_t *loc_params, H5VL_object_get_t get_type, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_object_specific(void *obj, const H5VL_loc_params_t *loc_params, H5VL_object_specific_t specific_type, hid_t dxpl_id, void **req, va_list arguments);
static herr_t H5VL_rlo_pass_through_object_optional(void *obj, hid_t dxpl_id, void **req, va_list arguments);
/* Async request callbacks */
static herr_t H5VL_rlo_pass_through_request_wait(void *req, uint64_t timeout, H5ES_status_t *status);
static herr_t H5VL_rlo_pass_through_request_notify(void *obj, H5VL_request_notify_t cb, void *ctx);
static herr_t H5VL_rlo_pass_through_request_cancel(void *req);
static herr_t H5VL_rlo_pass_through_request_specific(void *req, H5VL_request_specific_t specific_type, va_list arguments);
static herr_t H5VL_rlo_pass_through_request_optional(void *req, va_list arguments);
static herr_t H5VL_rlo_pass_through_request_free(void *req);
/* Blob callbacks */
static herr_t H5VL_rlo_pass_through_blob_put(void *obj, const void *buf, size_t size, void *blob_id, void *ctx);
static herr_t H5VL_rlo_pass_through_blob_get(void *obj, const void *blob_id, void *buf, size_t *size, void *ctx);
static herr_t H5VL_rlo_pass_through_blob_specific(void *obj, void *blob_id, H5VL_blob_specific_t specific_type, va_list arguments);
/*******************/
/* Local variables */
/*******************/
/* Pass through VOL connector class struct */
const H5VL_class_t H5VL_rlo_pass_through_g = {
H5VL_RLO_PASSTHRU_VERSION, /* version */
(H5VL_class_value_t)H5VL_RLO_PASSTHRU_VALUE, /* value */
H5VL_RLO_PASSTHRU_NAME, /* name */
0, /* capability flags */
H5VL_rlo_pass_through_init, /* initialize */
H5VL_rlo_pass_through_term, /* terminate */
{ /* info_cls */
sizeof(H5VL_rlo_pass_through_info_t), /* size */
H5VL_rlo_pass_through_info_copy, /* copy */
H5VL_rlo_pass_through_info_cmp, /* compare */
H5VL_rlo_pass_through_info_free, /* free */
H5VL_rlo_pass_through_info_to_str, /* to_str */
H5VL_rlo_pass_through_str_to_info, /* from_str */
},
{ /* wrap_cls */
H5VL_rlo_pass_through_get_object, /* get_object */
H5VL_rlo_pass_through_get_wrap_ctx, /* get_wrap_ctx */
H5VL_rlo_pass_through_wrap_object, /* wrap_object */
H5VL_rlo_pass_through_unwrap_object, /* unwrap_object */
H5VL_rlo_pass_through_free_wrap_ctx, /* free_wrap_ctx */
},
{ /* attribute_cls */
H5VL_rlo_pass_through_attr_create, /* create */
H5VL_rlo_pass_through_attr_open, /* open */
H5VL_rlo_pass_through_attr_read, /* read */
H5VL_rlo_pass_through_attr_write, /* write */
H5VL_rlo_pass_through_attr_get, /* get */
H5VL_rlo_pass_through_attr_specific, /* specific */
H5VL_rlo_pass_through_attr_optional, /* optional */
H5VL_rlo_pass_through_attr_close /* close */
},
{ /* dataset_cls */
H5VL_rlo_pass_through_dataset_create, /* create */
H5VL_rlo_pass_through_dataset_open, /* open */
H5VL_rlo_pass_through_dataset_read, /* read */
H5VL_rlo_pass_through_dataset_write, /* write */
H5VL_rlo_pass_through_dataset_get, /* get */
H5VL_rlo_pass_through_dataset_specific, /* specific */
H5VL_rlo_pass_through_dataset_optional, /* optional */
H5VL_rlo_pass_through_dataset_close /* close */
},
{ /* datatype_cls */
H5VL_rlo_pass_through_datatype_commit, /* commit */
H5VL_rlo_pass_through_datatype_open, /* open */
H5VL_rlo_pass_through_datatype_get, /* get_size */
H5VL_rlo_pass_through_datatype_specific, /* specific */
H5VL_rlo_pass_through_datatype_optional, /* optional */
H5VL_rlo_pass_through_datatype_close /* close */
},
{ /* file_cls */
H5VL_rlo_pass_through_file_create, /* create */
H5VL_rlo_pass_through_file_open, /* open */
H5VL_rlo_pass_through_file_get, /* get */
H5VL_rlo_pass_through_file_specific, /* specific */
H5VL_rlo_pass_through_file_optional, /* optional */
H5VL_rlo_pass_through_file_close /* close */
},
{ /* group_cls */
H5VL_rlo_pass_through_group_create, /* create */
H5VL_rlo_pass_through_group_open, /* open */
H5VL_rlo_pass_through_group_get, /* get */
H5VL_rlo_pass_through_group_specific, /* specific */
H5VL_rlo_pass_through_group_optional, /* optional */
H5VL_rlo_pass_through_group_close /* close */
},
{ /* link_cls */
H5VL_rlo_pass_through_link_create, /* create */
H5VL_rlo_pass_through_link_copy, /* copy */
H5VL_rlo_pass_through_link_move, /* move */
H5VL_rlo_pass_through_link_get, /* get */
H5VL_rlo_pass_through_link_specific, /* specific */
H5VL_rlo_pass_through_link_optional, /* optional */
},
{ /* object_cls */
H5VL_rlo_pass_through_object_open, /* open */
H5VL_rlo_pass_through_object_copy, /* copy */
H5VL_rlo_pass_through_object_get, /* get */
H5VL_rlo_pass_through_object_specific, /* specific */
H5VL_rlo_pass_through_object_optional, /* optional */
},
{ /* request_cls */
H5VL_rlo_pass_through_request_wait, /* wait */
H5VL_rlo_pass_through_request_notify, /* notify */
H5VL_rlo_pass_through_request_cancel, /* cancel */
H5VL_rlo_pass_through_request_specific, /* specific */
H5VL_rlo_pass_through_request_optional, /* optional */
H5VL_rlo_pass_through_request_free /* free */
},
{ /* blob_cls */
H5VL_rlo_pass_through_blob_put, /* put */
H5VL_rlo_pass_through_blob_get, /* get */
H5VL_rlo_pass_through_blob_specific, /* specific */
NULL /* optional */
},
NULL /* optional */
};
/* The connector identification number, initialized at runtime */
static hid_t H5VL_RLO_PASSTHRU_g = H5I_INVALID_HID;
/* Routines needed for dynamic loading */
H5PL_type_t H5PLget_plugin_type(void) {return H5PL_TYPE_VOL;}
const void *H5PLget_plugin_info(void) {return &H5VL_rlo_pass_through_g;}
// ===========================================================================
// ===========================================================================
// ===========================================================================
// Encoding the loc_params should be possible without complications
typedef struct proposal_param_ds_create{
hid_t type_id;
hid_t space_id;
hid_t lcpl_id;
hid_t dcpl_id;
hid_t dapl_id;
hid_t dxpl_id;
rlo_obj_type_t parent_type; //the container is a file or group
haddr_t parent_obj_addr;//search locally for a number, if it's a group/file ONLY. diff by under_obj_type in ...pass_through_t
size_t loc_param_size;
size_t name_size;
char* name;
//void* under_object; //local only, per operation:: search local version of this obj by obj_no
H5VL_loc_params_t* loc_params; //need en/decoder, , per operation: // H5VL_loc_params_t*
}param_ds_create;
typedef struct proposal_dt_commit_param{
hid_t type_id;
hid_t lcpl_id;
hid_t tcpl_id;
hid_t tapl_id;
hid_t dxpl_id;
rlo_obj_type_t parent_type;
haddr_t parent_obj_addr;
size_t loc_param_size;
H5VL_loc_params_t *loc_params;
size_t name_size;
char *name;
}param_dt_commit;
typedef struct proposal_param_ds_extend {
haddr_t dset_addr;
int rank;
hsize_t *new_size;
}param_ds_extend;
typedef struct proposal_param_group{
hid_t lcpl_id;
hid_t gcpl_id;
hid_t gapl_id;
hid_t dxpl_id;
rlo_obj_type_t parent_type;
haddr_t parent_obj_addr;
size_t name_size;
char *name;
size_t loc_param_size;
H5VL_loc_params_t *loc_params;
}param_group;
typedef struct proposal_param_attr{
hid_t type_id;
hid_t space_id;
hid_t acpl_id;
hid_t aapl_id;
hid_t dxpl_id;
rlo_obj_type_t parent_type;
haddr_t parent_obj_addr;
size_t name_size;
char *name;
size_t loc_param_size;
H5VL_loc_params_t* loc_params;
}param_attr;
typedef struct proposal_param_attr_write{
hid_t mem_type_id;
hid_t dxpl_id;
rlo_obj_type_t parent_type;
haddr_t parent_obj_addr;
size_t attr_name_size;
char* attr_name;
size_t buf_size;
void *buf;
}param_attr_wr;
static metadata_manager *metadata_helper_init(const H5VL_rlo_pass_through_info_t *info_in,
prop_ctx *h5_ctx);
void* t_encode(hid_t type_id, size_t* size);
void* p_encode(hid_t pl_id, size_t* size);
void* s_encode(hid_t space_id, size_t* size);
int loc_params_decoder(void* param_pack_in, H5VL_loc_params_t** param_out);
int loc_params_encoder(H5VL_loc_params_t* param_in, void** param_pack_out);
int loc_param_test(H5VL_loc_params_t* param_in);
int ds_create_encoder(param_ds_create* param_in, void** proposal_data_out);
int ds_create_decoder(void* proposal_data_in, param_ds_create* param_out);
void prop_param_ds_create_test(param_ds_create* param_in);
int ds_extenbd_decoder(void* proposal_data_in, param_ds_extend* param_out);
int group_create_encoder(param_group* param_in, void** proposal_data_out);
int group_create_decoder(void* proposal_data_in, param_group* param_out);
int attr_create_encoder(param_attr* param_in, void** proposal_data_out);
int attr_create_decoder(void* proposal_data_in, param_attr* param_out);
int attr_param_close(param_attr* param){return 0;}
int attr_write_encoder(param_attr_wr* param_in, void** proposal_data_out);
int attr_write_decoder(void* proposal_data_in, param_attr_wr* param_out);
//typedef struct proposal_dt_commit_param{
// hid_t type_id;
// hid_t lcpl_id;
// hid_t tcpl_id;
// hid_t tapl_id;
// hid_t dxpl_id;
// size_t loc_size;
// H5VL_loc_params_t *loc_params;
// size_t name_size;
// char *name;
//}param_dt_commit;
size_t dt_commit_encoder(param_dt_commit* param_in, void** proposal_data_out);
int dt_commit_decoder(void* proposal_data_in, param_dt_commit* param_out);
size_t dt_commit_encoder(param_dt_commit* param_in, void** proposal_data_out){
size_t total_size = 0;
assert(param_in && param_in->loc_params);
void* param_pack = NULL;
size_t loc_param_size = loc_params_encoder(param_in->loc_params, ¶m_pack);
param_in->loc_param_size = loc_param_size;
size_t type_id_size;
void* tid_buf = t_encode(param_in->type_id, &type_id_size);
size_t lcpl_size;
void* lcpl_buf = p_encode(param_in->lcpl_id, &lcpl_size);
size_t tcpl_size;
void* tcpl_buf = p_encode(param_in->tcpl_id, &tcpl_size);
size_t tapl_size;
void* tapl_buf = p_encode(param_in->tapl_id, &tapl_size);
size_t dxpl_size;
void* dxpl_buf = p_encode(param_in->dxpl_id, &dxpl_size);
total_size =
sizeof(size_t) + type_id_size +
sizeof(size_t) + lcpl_size +
sizeof(size_t) + tcpl_size +
sizeof(size_t) + tapl_size +
sizeof(size_t) + dxpl_size +
sizeof(rlo_obj_type_t) + //parent_type
sizeof(haddr_t) + //parent_addr
sizeof(size_t) + loc_param_size +
sizeof(size_t) + param_in->name_size;
if(!(*proposal_data_out)){
//DEBUG_PRINT
*proposal_data_out = calloc(1, total_size);
}
void* cur = *proposal_data_out;
*(size_t*) cur = type_id_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, tid_buf, type_id_size);
cur = (char*)cur + type_id_size;
free(tid_buf);
*(size_t*) cur = lcpl_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, lcpl_buf, lcpl_size);
cur = (char*)cur + lcpl_size;
free(lcpl_buf);
*(size_t*)cur = tcpl_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, tcpl_buf, tcpl_size);
cur = (char*)cur + tcpl_size;
free(tcpl_buf);
*(size_t*)cur = tapl_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, tapl_buf, tapl_size);
cur = (char*)cur + tapl_size;
free(tapl_buf);
*(size_t*)cur = dxpl_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, dxpl_buf, dxpl_size);
cur = (char*)cur + dxpl_size;
free(dxpl_buf);
*(rlo_obj_type_t*)cur = param_in->parent_type;
cur = (char*)cur + sizeof(rlo_obj_type_t);
*(haddr_t*)cur = param_in->parent_obj_addr;
cur = (char*)cur + sizeof(haddr_t);
*(size_t*)cur = param_in->name_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, param_in->name, param_in->name_size);
cur = (char*)cur + param_in->name_size;
*(size_t*)cur = param_in->loc_param_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, param_pack, param_in->loc_param_size);
return total_size;
}
int dt_commit_decoder(void* proposal_data_in, param_dt_commit* param_out){
DEBUG_PRINT
if(!param_out)
param_out = calloc(1, sizeof(param_attr));
size_t type_id_size = *(size_t*)proposal_data_in;
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
param_out->type_id = H5Tdecode(proposal_data_in);
proposal_data_in = (char*)proposal_data_in + type_id_size;
//==========================================================
size_t lcpl_size = *(size_t*)proposal_data_in;
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
param_out->lcpl_id = H5Pdecode(proposal_data_in);
proposal_data_in = (char*)proposal_data_in + lcpl_size;
size_t tcpl_size = *(size_t*)proposal_data_in;
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
param_out->tcpl_id = H5Pdecode(proposal_data_in);
proposal_data_in = (char*)proposal_data_in + tcpl_size;
size_t tapl_size = *(size_t*)proposal_data_in;
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
param_out->tapl_id = H5Pdecode(proposal_data_in);
proposal_data_in = (char*)proposal_data_in + tapl_size;
size_t dxpl_size = *(size_t*)proposal_data_in;
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
param_out->dxpl_id = H5Pdecode(proposal_data_in);
proposal_data_in = (char*)proposal_data_in + dxpl_size;
//==========================================================
param_out->parent_type = *((rlo_obj_type_t*)proposal_data_in);
proposal_data_in = (char*)proposal_data_in + sizeof(rlo_obj_type_t);
param_out->parent_obj_addr = *((haddr_t*)proposal_data_in);
proposal_data_in = (char*)proposal_data_in + sizeof(haddr_t);
//==========================================================
param_out->name_size = *((size_t*)proposal_data_in);
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
param_out->name = calloc(1, param_out->name_size);
memcpy(param_out->name , proposal_data_in, param_out->name_size);
proposal_data_in = (char*)proposal_data_in + param_out->name_size;
param_out->loc_param_size = *((size_t*)proposal_data_in);
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
void* param_pack = proposal_data_in;// + param_out->uobj_size;
H5VL_loc_params_t* loc_params = NULL;
loc_params_decoder(param_pack, &loc_params);
param_out->loc_params = loc_params;
return 1;
}
int attr_write_encoder(param_attr_wr* param_in, void** proposal_data_out){
size_t type_id_size;
void* tid_buf = t_encode(param_in->mem_type_id, &type_id_size);
size_t dxpl_size;
void* dxpl_buf = p_encode(param_in->dxpl_id, &dxpl_size);
size_t total_size =
sizeof(size_t) + type_id_size +
sizeof(size_t) + dxpl_size +
sizeof(rlo_obj_type_t) + //parent_type
sizeof(haddr_t) + //parent_addr
sizeof(size_t) + param_in->attr_name_size + //name
sizeof(size_t) + param_in->buf_size; //buf
if(!(*proposal_data_out)){
//DEBUG_PRINT
*proposal_data_out = calloc(1, total_size);
}
void* cur = *proposal_data_out;
*(size_t*) cur = type_id_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, tid_buf, type_id_size);
cur = (char*)cur + type_id_size;
free(tid_buf);
*(size_t*) cur = dxpl_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, dxpl_buf, dxpl_size);
cur = (char*)cur + dxpl_size;
free(dxpl_buf);
*(rlo_obj_type_t*)cur = param_in->parent_type;
cur = (char*)cur + sizeof(rlo_obj_type_t);
*(haddr_t*)cur = param_in->parent_obj_addr;
cur = (char*)cur + sizeof(haddr_t);
//param_in->attr_name_size = strlen(param_in->attr_name) + 1;
*(size_t*)cur = param_in->attr_name_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, param_in->attr_name, param_in->attr_name_size);
cur = (char*)cur + param_in->attr_name_size;
*(size_t*)cur = param_in->buf_size;
cur = (char*)cur + sizeof(size_t);
if(param_in->buf_size > 0){
memcpy(cur, param_in->buf, param_in->buf_size);
} else
cur = NULL;
return total_size;
}
int attr_write_decoder(void* proposal_data_in, param_attr_wr* param_out){
if(!param_out)
param_out = calloc(1, sizeof(param_attr));
// Decoding hid_ts now...
size_t type_id_size = *(size_t*)proposal_data_in;
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
param_out->mem_type_id = H5Tdecode(proposal_data_in);
proposal_data_in = (char*)proposal_data_in + type_id_size;
size_t dxpl_size = *(size_t*)proposal_data_in;
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
param_out->dxpl_id = H5Pdecode(proposal_data_in);
proposal_data_in = (char*)proposal_data_in + dxpl_size;
param_out->parent_type = *((rlo_obj_type_t*)proposal_data_in);
proposal_data_in = (char*)proposal_data_in + sizeof(rlo_obj_type_t);
param_out->parent_obj_addr = *(haddr_t*)proposal_data_in;
proposal_data_in = (char*)proposal_data_in + sizeof(haddr_t);
param_out->attr_name_size = *(size_t*)proposal_data_in;
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
param_out->attr_name = calloc(1, param_out->attr_name_size);
memcpy(param_out->attr_name, proposal_data_in, param_out->attr_name_size);
proposal_data_in = (char*)proposal_data_in + param_out->attr_name_size;
param_out->buf_size = *((size_t*)proposal_data_in);
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
param_out->buf = calloc(1, param_out->buf_size);
memcpy(param_out->buf, proposal_data_in, param_out->buf_size);
return 0;
}
int attr_create_encoder(param_attr* param_in, void** proposal_data_out){
assert(param_in && param_in->loc_params);
void* param_pack = NULL;
size_t loc_param_size = loc_params_encoder(param_in->loc_params, ¶m_pack);
param_in->loc_param_size = loc_param_size;
size_t type_id_size;
void* tid_buf = t_encode(param_in->type_id, &type_id_size);
size_t space_id_size;
void* sid_buf = s_encode(param_in->space_id, &space_id_size);
size_t acpl_size;
void* acpl_buf = p_encode(param_in->acpl_id, &acpl_size);
size_t aapl_size;
void* aapl_buf = p_encode(param_in->aapl_id, &aapl_size);
size_t dxpl_size;
void* dxpl_buf = p_encode(param_in->dxpl_id, &dxpl_size);
size_t total_size = type_id_size + space_id_size
+ acpl_size + aapl_size + dxpl_size
+ 5 * sizeof(size_t)
+ sizeof(rlo_obj_type_t) + sizeof(haddr_t)
+ loc_param_size + param_in->name_size
+ 2 * sizeof(size_t);
if(!(*proposal_data_out)){
//DEBUG_PRINT
*proposal_data_out = calloc(1, total_size);
}
void* cur = *proposal_data_out;
*(size_t*) cur = type_id_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, tid_buf, type_id_size);
cur = (char*)cur + type_id_size;
free(tid_buf);
*(size_t*) cur = space_id_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, sid_buf, space_id_size);
cur = (char*)cur + space_id_size;
free(sid_buf);
//======================
*(size_t*) cur = acpl_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, acpl_buf, acpl_size);
cur = (char*)cur + acpl_size;
free(acpl_buf);
*(size_t*) cur = aapl_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, aapl_buf, aapl_size);
cur = (char*)cur + aapl_size;
free(aapl_buf);
*(size_t*) cur = dxpl_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, dxpl_buf, dxpl_size);
cur = (char*)cur + dxpl_size;
free(dxpl_buf);
// ========== hid_t bufs done ==========
*(rlo_obj_type_t*)cur = param_in->parent_type;
cur = (char*)cur + sizeof(rlo_obj_type_t);
*((haddr_t*)(cur)) = param_in->parent_obj_addr;
cur = ((char*)cur + sizeof(haddr_t));
//======================
*(size_t*)cur = param_in->name_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, param_in->name, param_in->name_size);
cur = (char*)cur + param_in->name_size;
*(size_t*)cur = param_in->loc_param_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, param_pack, param_in->loc_param_size);
//printf("%s: %d: rank = %d, PRINTING SIZES: tid_size = %lu, sid_size = %lu, acpl_size = %lu, aapl_size = %lu, dxpl_size = %lu\n",
// __func__, __LINE__, MY_RANK_DEBUG,
// type_id_size, space_id_size , acpl_size , aapl_size , dxpl_size );
return total_size;
}
int attr_create_decoder(void* proposal_data_in, param_attr* param_out){
DEBUG_PRINT
if(!param_out)
param_out = calloc(1, sizeof(param_attr));
// Decoding hid_ts now...
size_t type_id_size = *(size_t*)proposal_data_in;
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
param_out->type_id = H5Tdecode(proposal_data_in);
proposal_data_in = (char*)proposal_data_in + type_id_size;
size_t space_id_size = *(size_t*)proposal_data_in;
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
param_out->space_id = H5Sdecode(proposal_data_in);
proposal_data_in = (char*)proposal_data_in + space_id_size;
//==========================================================
size_t acpl_size = *(size_t*)proposal_data_in;
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
param_out->acpl_id = H5Pdecode(proposal_data_in);
proposal_data_in = (char*)proposal_data_in + acpl_size;
size_t aapl_size = *(size_t*)proposal_data_in;
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
param_out->aapl_id = H5Pdecode(proposal_data_in);
proposal_data_in = (char*)proposal_data_in + aapl_size;
size_t dxpl_size = *(size_t*)proposal_data_in;
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
param_out->dxpl_id = H5Pdecode(proposal_data_in);
proposal_data_in = (char*)proposal_data_in + dxpl_size;
//==========================================================
param_out->parent_type = *((rlo_obj_type_t*)proposal_data_in);
proposal_data_in = (char*)proposal_data_in + sizeof(rlo_obj_type_t);
param_out->parent_obj_addr = *((haddr_t*)proposal_data_in);
proposal_data_in = (char*)proposal_data_in + sizeof(haddr_t);
//==========================================================
param_out->name_size = *((size_t*)proposal_data_in);
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
param_out->name = calloc(1, param_out->name_size);
memcpy(param_out->name , proposal_data_in, param_out->name_size);
proposal_data_in = (char*)proposal_data_in + param_out->name_size;
param_out->loc_param_size = *((size_t*)proposal_data_in);
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
void* param_pack = proposal_data_in;// + param_out->uobj_size;
H5VL_loc_params_t* loc_params = NULL;
loc_params_decoder(param_pack, &loc_params);
param_out->loc_params = loc_params;
//printf("%s: %d: rank = %d, PRINTING SIZES: tid_size = %lu, sid_size = %lu, acpl_size = %lu, aapl_size = %lu, dxpl_size = %lu\n",
// __func__, __LINE__, MY_RANK_DEBUG,
// type_id_size, space_id_size , acpl_size , aapl_size , dxpl_size );
return 1;
}
void prop_param_attr_create_test(param_attr* param_in){
assert(param_in);
printf("%s: %d: rank = %d, type_id = %llx, space_id = %llx, acpl_id = %llx, aapl_id = %llx, dxpl_id = %llx, loc_param_size = %lu, name_size = %lu, name = [%s], parent_type = %d\n",
__func__, __LINE__, MY_RANK_DEBUG,
param_in->type_id,
param_in->space_id,
param_in->acpl_id,
param_in->aapl_id,
param_in->dxpl_id,
param_in->loc_param_size,
param_in->name_size,
param_in->name,
param_in->parent_type);
loc_param_test(param_in->loc_params);
}
int group_create_encoder(param_group* param_in, void** proposal_data_out){
assert(param_in && param_in->loc_params);
// Encode under_object information (type & objno, if group)
void* param_pack = NULL;
size_t loc_param_size = loc_params_encoder(param_in->loc_params, ¶m_pack);
param_in->loc_param_size = loc_param_size;
param_in->name_size = strlen(param_in->name) + 1;
size_t lcpl_size;
void* lcpl_buf = p_encode(param_in->lcpl_id, &lcpl_size);
size_t gcpl_size;
void* gcpl_buf = p_encode(param_in->gcpl_id, &gcpl_size);
size_t gapl_size;
void* gapl_buf = p_encode(param_in->gapl_id, &gapl_size);
size_t dxpl_size;
void* dxpl_buf = p_encode(param_in->dxpl_id, &dxpl_size);
size_t total_size = lcpl_size + gcpl_size + gapl_size + dxpl_size
+ 4 * sizeof(size_t)
+ sizeof(rlo_obj_type_t) + sizeof(haddr_t)
+ loc_param_size + param_in->name_size
+ 2 * sizeof(size_t);
if(!(*proposal_data_out)){
//DEBUG_PRINT
*proposal_data_out = calloc(1, total_size);
}
void* cur = *proposal_data_out;
// Start to copy mems
*(size_t*) cur = lcpl_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, lcpl_buf, lcpl_size);
cur = (char*)cur + lcpl_size;
free(lcpl_buf);
*(size_t*) cur = gcpl_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, gcpl_buf, gcpl_size);
cur = (char*)cur + gcpl_size;
free(gcpl_buf);
*(size_t*) cur = gapl_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, gapl_buf, gapl_size);
cur = (char*)cur + gapl_size;
free(gapl_buf);
*(size_t*) cur = dxpl_size;
cur = (char*)cur + sizeof(size_t);
memcpy(cur, dxpl_buf, dxpl_size);
cur = (char*)cur + dxpl_size;
free(dxpl_buf);
// ========== hid_t bufs done ==========
*(rlo_obj_type_t*)cur = param_in->parent_type;
cur = (char*)cur + sizeof(rlo_obj_type_t);
//printf("%s: %d: param_in->parent_type = %d\n", __func__, __LINE__, param_in->parent_type);
*((haddr_t*)(cur)) = param_in->parent_obj_addr;
cur = ((char*)cur + sizeof(haddr_t));
//printf("%s: %d: param_in->parent_obj_addr = %lu\n", __func__, __LINE__, param_in->parent_obj_addr);
*(size_t*)cur = param_in->name_size;
cur = (char*)cur + sizeof(size_t);
//printf("%s: %d: param_in->name_size = %lu\n", __func__, __LINE__, param_in->name_size);
memcpy(cur, param_in->name, param_in->name_size);
cur = (char*)cur + param_in->name_size;
*(size_t*)cur = param_in->loc_param_size;
cur = (char*)cur + sizeof(size_t);
//printf("%s: %d: param_in->loc_param_size = %lu\n", __func__, __LINE__, param_in->loc_param_size);
memcpy(cur, param_pack, param_in->loc_param_size);
cur = (char*)cur + param_in->loc_param_size;
return total_size;
}
int group_create_decoder(void* proposal_data_in, param_group* param_out){
if(!param_out)
param_out = calloc(1, sizeof(param_group));
size_t lcpl_size = *(size_t*)proposal_data_in;
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
param_out->lcpl_id = H5Pdecode(proposal_data_in);
proposal_data_in = (char*)proposal_data_in + lcpl_size;
size_t gcpl_size = *(size_t*)proposal_data_in;
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
param_out->gcpl_id = H5Pdecode(proposal_data_in);
proposal_data_in = (char*)proposal_data_in + gcpl_size;
size_t gapl_size = *(size_t*)proposal_data_in;
proposal_data_in = (char*)proposal_data_in + sizeof(size_t);
param_out->gapl_id = H5Pdecode(proposal_data_in);
proposal_data_in = (char*)proposal_data_in + gapl_size;