1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 
  15 
  16 
  17 
  18 
  19 
  20 
  21 
  22 
  23 #ifndef MCA_FS_UFS_H
  24 #define MCA_FS_UFS_H
  25 
  26 #include "ompi_config.h"
  27 #include "ompi/mca/mca.h"
  28 #include "ompi/mca/fs/fs.h"
  29 #include "ompi/mca/common/ompio/common_ompio.h"
  30 
  31 extern int mca_fs_ufs_priority;
  32 extern int mca_fs_ufs_lock_algorithm;
  33 
  34 #define FS_UFS_LOCK_AUTO        0
  35 #define FS_UFS_LOCK_NEVER       1
  36 #define FS_UFS_LOCK_ENTIRE_FILE 2
  37 #define FS_UFS_LOCK_RANGES      3
  38 
  39 BEGIN_C_DECLS
  40 
  41 int mca_fs_ufs_component_init_query(bool enable_progress_threads,
  42                                         bool enable_mpi_threads);
  43 struct mca_fs_base_module_1_0_0_t *
  44 mca_fs_ufs_component_file_query (ompio_file_t *fh, int *priority);
  45 int mca_fs_ufs_component_file_unquery (ompio_file_t *file);
  46 
  47 int mca_fs_ufs_module_init (ompio_file_t *file);
  48 int mca_fs_ufs_module_finalize (ompio_file_t *file);
  49 
  50 OMPI_MODULE_DECLSPEC extern mca_fs_base_component_2_0_0_t mca_fs_ufs_component;
  51 
  52 
  53 
  54 
  55 
  56 
  57 int mca_fs_ufs_file_open (struct ompi_communicator_t *comm,
  58                           const char *filename,
  59                           int amode,
  60                           struct opal_info_t *info,
  61                           ompio_file_t *fh);
  62 
  63 int mca_fs_ufs_file_close (ompio_file_t *fh);
  64 
  65 int mca_fs_ufs_file_delete (char *filename,
  66                             struct opal_info_t *info);
  67 
  68 int mca_fs_ufs_file_set_size (ompio_file_t *fh,
  69                               OMPI_MPI_OFFSET_TYPE size);
  70 
  71 int mca_fs_ufs_file_get_size (ompio_file_t *fh,
  72                               OMPI_MPI_OFFSET_TYPE *size);
  73 
  74 int mca_fs_ufs_file_sync (ompio_file_t *fh);
  75 
  76 int mca_fs_ufs_file_seek (ompio_file_t *fh,
  77                           OMPI_MPI_OFFSET_TYPE offset,
  78                           int whence);
  79 
  80 
  81 
  82 
  83 
  84 
  85 END_C_DECLS
  86 
  87 #endif