This source file includes following definitions.
- register_component
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 #include "ompi_config.h"
30 #include "fs_ufs.h"
31 #include "mpi.h"
32
33 int mca_fs_ufs_priority = 10;
34 int mca_fs_ufs_lock_algorithm=0;
35
36
37
38 static int register_component(void);
39
40
41
42
43
44 const char *mca_fs_ufs_component_version_string =
45 "OMPI/MPI ufs FS MCA component version " OMPI_VERSION;
46
47
48
49
50
51 mca_fs_base_component_2_0_0_t mca_fs_ufs_component = {
52
53
54
55
56 .fsm_version = {
57 MCA_FS_BASE_VERSION_2_0_0,
58
59
60 .mca_component_name = "ufs",
61 MCA_BASE_MAKE_VERSION(component, OMPI_MAJOR_VERSION, OMPI_MINOR_VERSION,
62 OMPI_RELEASE_VERSION),
63 .mca_register_component_params = register_component,
64 },
65 .fsm_data = {
66
67 MCA_BASE_METADATA_PARAM_CHECKPOINT
68 },
69 .fsm_init_query = mca_fs_ufs_component_init_query,
70 .fsm_file_query = mca_fs_ufs_component_file_query,
71 .fsm_file_unquery = mca_fs_ufs_component_file_unquery,
72 };
73
74 static int register_component(void)
75 {
76 mca_fs_ufs_priority = 10;
77 (void) mca_base_component_var_register(&mca_fs_ufs_component.fsm_version,
78 "priority", "Priority of the fs ufs component",
79 MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
80 OPAL_INFO_LVL_9,
81 MCA_BASE_VAR_SCOPE_READONLY,
82 &mca_fs_ufs_priority);
83
84 mca_fs_ufs_lock_algorithm = 0;
85 (void) mca_base_component_var_register(&mca_fs_ufs_component.fsm_version,
86 "lock_algorithm", "Locking algorithm used by the fs ufs component. "
87 " 0: auto (default), 1: skip locking, 2: always lock entire file, "
88 "3: lock only specific ranges",
89 MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
90 OPAL_INFO_LVL_9,
91 MCA_BASE_VAR_SCOPE_READONLY,
92 &mca_fs_ufs_lock_algorithm );
93
94 return OMPI_SUCCESS;
95 }