IOR
|
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include "ior.h"
#include "iordef.h"
#include "aiori.h"
#include "utilities.h"
#include "ime_native.h"
Go to the source code of this file.
Data Structures | |
struct | ime_options_t |
Macros | |
#define | IME_UNUSED(x) (void)(x) /* Silence compiler warnings */ |
#define | O_BINARY 0 |
Functions | |
aiori_fd_t * | IME_Create (char *, int, aiori_mod_opt_t *) |
aiori_fd_t * | IME_Open (char *, int, aiori_mod_opt_t *) |
void | IME_Close (aiori_fd_t *, aiori_mod_opt_t *) |
void | IME_Delete (char *, aiori_mod_opt_t *) |
char * | IME_GetVersion () |
void | IME_Fsync (aiori_fd_t *, aiori_mod_opt_t *) |
int | IME_Access (const char *, int, aiori_mod_opt_t *) |
IOR_offset_t | IME_GetFileSize (aiori_mod_opt_t *, char *) |
IOR_offset_t | IME_Xfer (int, aiori_fd_t *, IOR_size_t *, IOR_offset_t, IOR_offset_t, aiori_mod_opt_t *) |
int | IME_Statfs (const char *, ior_aiori_statfs_t *, aiori_mod_opt_t *) |
int | IME_Rmdir (const char *, aiori_mod_opt_t *) |
int | IME_Mkdir (const char *, mode_t, aiori_mod_opt_t *) |
int | IME_Stat (const char *, struct stat *, aiori_mod_opt_t *) |
void | IME_Xferhints (aiori_xfer_hint_t *params) |
void | IME_Initialize () |
void | IME_Finalize () |
option_help * | IME_Options (aiori_mod_opt_t **init_backend_options, aiori_mod_opt_t *init_values) |
Variables | |
int | rank |
int | rankOffset |
int | verbose |
MPI_Comm | testComm |
ior_aiori_t | ime_aiori |
static aiori_xfer_hint_t * | hints = NULL |
static bool | ime_initialized = false |
#define IME_UNUSED | ( | x | ) | (void)(x) /* Silence compiler warnings */ |
Definition at line 33 of file aiori-IME.c.
Referenced by IME_Access(), IME_Mkdir(), IME_Rmdir(), IME_Stat(), and IME_Statfs().
#define O_BINARY 0 |
Definition at line 36 of file aiori-IME.c.
Referenced by IME_Open().
int IME_Access | ( | const char * | path, |
int | mode, | ||
aiori_mod_opt_t * | module_options | ||
) |
Definition at line 168 of file aiori-IME.c.
References IME_UNUSED.
void IME_Close | ( | aiori_fd_t * | file, |
aiori_mod_opt_t * | param | ||
) |
Definition at line 305 of file aiori-IME.c.
References aiori_xfer_hint_t::dryRun, and ERRF.
aiori_fd_t * IME_Create | ( | char * | testFileName, |
int | flags, | ||
aiori_mod_opt_t * | param | ||
) |
Definition at line 178 of file aiori-IME.c.
References IME_Open().
void IME_Delete | ( | char * | testFileName, |
aiori_mod_opt_t * | param | ||
) |
Definition at line 319 of file aiori-IME.c.
References aiori_xfer_hint_t::dryRun, EWARNF, and rank.
void IME_Finalize | ( | ) |
Definition at line 155 of file aiori-IME.c.
References ime_initialized.
void IME_Fsync | ( | aiori_fd_t * | fd, |
aiori_mod_opt_t * | param | ||
) |
Definition at line 296 of file aiori-IME.c.
References WARN.
Referenced by IME_Xfer().
IOR_offset_t IME_GetFileSize | ( | aiori_mod_opt_t * | test, |
char * | testFileName | ||
) |
Definition at line 413 of file aiori-IME.c.
References aiori_xfer_hint_t::dryRun, ERR, ERRF, and FAIL.
char * IME_GetVersion | ( | ) |
Definition at line 332 of file aiori-IME.c.
void IME_Initialize | ( | ) |
Definition at line 143 of file aiori-IME.c.
References ime_initialized.
int IME_Mkdir | ( | const char * | path, |
mode_t | mode, | ||
aiori_mod_opt_t * | module_options | ||
) |
Definition at line 370 of file aiori-IME.c.
References IME_UNUSED, and WARN.
aiori_fd_t * IME_Open | ( | char * | testFileName, |
int | flags, | ||
aiori_mod_opt_t * | param | ||
) |
Definition at line 186 of file aiori-IME.c.
References ime_options_t::direct_io, aiori_xfer_hint_t::dryRun, ERR, IOR_APPEND, IOR_CREAT, IOR_EXCL, IOR_RDONLY, IOR_RDWR, IOR_TRUNC, IOR_WRONLY, NULL, o, O_BINARY, set_o_direct_flag(), and TRUE.
Referenced by IME_Create().
option_help* IME_Options | ( | aiori_mod_opt_t ** | init_backend_options, |
aiori_mod_opt_t * | init_values | ||
) |
Definition at line 72 of file aiori-IME.c.
References ime_options_t::direct_io, LAST_OPTION, NULL, o, OPTION_FLAG, rank, rankOffset, testComm, and verbose.
int IME_Rmdir | ( | const char * | path, |
aiori_mod_opt_t * | module_options | ||
) |
Definition at line 385 of file aiori-IME.c.
References IME_UNUSED, and WARN.
int IME_Stat | ( | const char * | path, |
struct stat * | buf, | ||
aiori_mod_opt_t * | module_options | ||
) |
Definition at line 402 of file aiori-IME.c.
References IME_UNUSED.
int IME_Statfs | ( | const char * | path, |
ior_aiori_statfs_t * | stat_buf, | ||
aiori_mod_opt_t * | module_options | ||
) |
Definition at line 343 of file aiori-IME.c.
References ior_aiori_statfs::f_bfree, ior_aiori_statfs::f_blocks, ior_aiori_statfs::f_bsize, ior_aiori_statfs::f_ffree, ior_aiori_statfs::f_files, IME_UNUSED, and WARN.
IOR_offset_t IME_Xfer | ( | int | access, |
aiori_fd_t * | file, | ||
IOR_size_t * | buffer, | ||
IOR_offset_t | length, | ||
IOR_offset_t | offset, | ||
aiori_mod_opt_t * | param | ||
) |
Definition at line 229 of file aiori-IME.c.
References aiori_xfer_hint_t::dryRun, ERR, aiori_xfer_hint_t::fsyncPerWrite, IME_Fsync(), MAX_RETRY, MPI_CHECK, rank, rc, aiori_xfer_hint_t::singleXferAttempt, verbose, VERBOSE_4, and WRITE.
void IME_Xferhints | ( | aiori_xfer_hint_t * | params | ) |
Definition at line 135 of file aiori-IME.c.
|
static |
Definition at line 129 of file aiori-IME.c.
ior_aiori_t ime_aiori |
Definition at line 102 of file aiori-IME.c.
|
static |
Definition at line 130 of file aiori-IME.c.
Referenced by IME_Finalize(), and IME_Initialize().
int rank |
Definition at line 68 of file utilities.c.
Referenced by CEPHFS_GetFileSize(), CheckFileSize(), collective_helper(), CompareData(), CountErrors(), create_file(), DecodeDirective(), DFS_Create(), DFS_Finalize(), DFS_GetFileSize(), DFS_Init(), DFS_Open(), directory_test(), DisplayOutliers(), DistributeHints(), DUMMY_Create(), DUMMY_Xfer(), file_hits_histogram(), file_test(), file_test_create(), FillIncompressibleBuffer(), GetOffsetArrayRandom(), GetTestFileName(), HandleDistribute(), HDF5_Open(), HDF5_Xfer(), HDFS_Create_Or_Open(), HDFS_Delete(), HDFS_Xfer(), IME_Delete(), IME_Options(), IME_Xfer(), InitTests(), ior_main(), ior_run(), md_validate_tests(), mdtest_iteration(), mdtest_read(), mdtest_run(), MPIIO_Open(), MPIIO_Xfer(), NCMPI_Create(), NCMPI_Open(), NCMPI_Xfer(), POSIX_Create(), POSIX_Delete(), POSIX_Rename(), POSIX_Xfer(), PrependDir(), PrintArrayEnd(), PrintArrayNamedStart(), PrintArrayStart(), PrintEndSection(), PrintHeader(), PrintLongSummaryAllTests(), PrintLongSummaryHeader(), PrintLongSummaryOneOperation(), PrintRemoveTiming(), PrintRepeatEnd(), PrintRepeatStart(), PrintShortSummary(), PrintTestEnds(), RADOS_GetFileSize(), ReduceIterResults(), remove_file(), RemoveFile(), S3_final(), S3_init(), SeekOffset(), SetupDataSet(), share_file_handle(), ShowTestEnd(), StoreRankInformation(), summarize_results(), test_initialize(), TestIoSys(), VerboseMessage(), WriteOrRead(), and WriteTimes().
int rankOffset |
Definition at line 69 of file utilities.c.
Referenced by file_hits_histogram(), GetTestFileName(), HDF5_Xfer(), IME_Options(), MPIIO_Open(), NCMPI_Xfer(), PrependDir(), RemoveFile(), SeekOffset(), SetupDataSet(), TestIoSys(), and WriteOrRead().
MPI_Comm testComm |
Definition at line 71 of file utilities.c.
Referenced by CheckFileSize(), CountErrors(), DFS_Create(), DFS_Finalize(), DFS_GetFileSize(), DFS_Open(), directory_test(), DisplayOutliers(), file_test(), file_test_create(), HandleDistribute(), HDF5_Open(), HDFS_Create_Or_Open(), IME_Options(), mdtest_iteration(), mdtest_run(), MPIIO_GetFileSize(), MPIIO_Open(), NCMPI_Create(), NCMPI_Open(), phase_end(), POSIX_Create(), ReduceIterResults(), share_file_handle(), StoreRankInformation(), summarize_results(), test_finalize(), test_initialize(), TestIoSys(), unique_dir_access(), updateStoneWallIterations(), and WriteOrRead().
int verbose |
Definition at line 70 of file utilities.c.
Referenced by IME_Options(), and IME_Xfer().