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 #ifndef MCA_FS_BASE_H
30 #define MCA_FS_BASE_H
31
32 #include "ompi_config.h"
33
34 #include "mpi.h"
35 #include "opal/mca/base/base.h"
36 #include "ompi/mca/common/ompio/common_ompio.h"
37 #include "ompi/mca/fs/fs.h"
38
39
40 BEGIN_C_DECLS
41
42 OMPI_DECLSPEC int mca_fs_base_file_select(struct ompio_file_t *file,
43 mca_base_component_t *preferred);
44
45 OMPI_DECLSPEC int mca_fs_base_file_unselect(struct ompio_file_t *file);
46
47 OMPI_DECLSPEC int mca_fs_base_find_available(bool enable_progress_threads,
48 bool enable_mpi_threads);
49
50 OMPI_DECLSPEC int mca_fs_base_init_file (struct ompio_file_t *file);
51
52 OMPI_DECLSPEC int mca_fs_base_get_param (struct ompio_file_t *file, int keyval);
53 OMPI_DECLSPEC void mca_fs_base_get_parent_dir (char *filename, char **dirnamep);
54 OMPI_DECLSPEC int mca_fs_base_get_fstype(char *fname);
55
56 OMPI_DECLSPEC int mca_fs_base_file_delete (char* file_name, struct opal_info_t *info);
57 OMPI_DECLSPEC int mca_fs_base_file_sync (ompio_file_t *fh);
58 OMPI_DECLSPEC int mca_fs_base_file_get_size (ompio_file_t *fh, OMPI_MPI_OFFSET_TYPE *size);
59 OMPI_DECLSPEC int mca_fs_base_file_set_size (ompio_file_t *fh, OMPI_MPI_OFFSET_TYPE size);
60 OMPI_DECLSPEC int mca_fs_base_file_close (ompio_file_t *fh);
61
62
63
64
65
66 OMPI_DECLSPEC extern mca_base_framework_t ompi_fs_base_framework;
67
68 END_C_DECLS
69
70 #endif