This source file includes following definitions.
- pvfs2_register
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 #include "ompi_config.h"
32 #include "fs_pvfs2.h"
33 #include "mpi.h"
34
35
36
37
38 const char *mca_fs_pvfs2_component_version_string =
39 "OMPI/MPI pvfs2 FS MCA component version " OMPI_VERSION;
40
41 static int pvfs2_register(void);
42
43 int mca_fs_pvfs2_priority = 20;
44 int mca_fs_pvfs2_stripe_size = -1;
45 int mca_fs_pvfs2_stripe_width = -1;
46 int mca_fs_pvfs2_IS_INITIALIZED = 0;
47
48
49
50
51
52 mca_fs_base_component_2_0_0_t mca_fs_pvfs2_component = {
53
54
55
56
57 .fsm_version = {
58 MCA_FS_BASE_VERSION_2_0_0,
59
60
61 .mca_component_name = "pvfs2",
62 MCA_BASE_MAKE_VERSION(component, OMPI_MAJOR_VERSION, OMPI_MINOR_VERSION,
63 OMPI_RELEASE_VERSION),
64 .mca_register_component_params = pvfs2_register,
65 },
66 .fsm_data = {
67
68 MCA_BASE_METADATA_PARAM_CHECKPOINT
69 },
70 .fsm_init_query = mca_fs_pvfs2_component_init_query,
71 .fsm_file_query = mca_fs_pvfs2_component_file_query,
72 .fsm_file_unquery = mca_fs_pvfs2_component_file_unquery,
73 };
74
75 static int
76 pvfs2_register(void)
77 {
78 mca_fs_pvfs2_priority = 20;
79 (void) mca_base_component_var_register (&mca_fs_pvfs2_component.fsm_version,
80 "priority", "Priority of the pvfs2 fs component",
81 MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
82 OPAL_INFO_LVL_9,
83 MCA_BASE_VAR_SCOPE_READONLY, &mca_fs_pvfs2_priority);
84 mca_fs_pvfs2_stripe_size = -1;
85 (void) mca_base_component_var_register (&mca_fs_pvfs2_component.fsm_version,
86 "stripe_size", "stripe size of a file over pvfs2",
87 MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
88 OPAL_INFO_LVL_9,
89 MCA_BASE_VAR_SCOPE_READONLY, &mca_fs_pvfs2_stripe_size);
90 mca_fs_pvfs2_stripe_width = -1;
91 (void) mca_base_component_var_register (&mca_fs_pvfs2_component.fsm_version,
92 "stripe_width", "stripe width of a file over pvfs2",
93 MCA_BASE_VAR_TYPE_INT, NULL, 0, 0,
94 OPAL_INFO_LVL_9,
95 MCA_BASE_VAR_SCOPE_READONLY, &mca_fs_pvfs2_stripe_width);
96
97 return OMPI_SUCCESS;
98 }