IOR
|
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <assert.h>
#include "ior.h"
#include "aiori.h"
#include "iordef.h"
#include "utilities.h"
Go to the source code of this file.
Data Structures | |
struct | posix_options_t |
Macros | |
#define | open64 open /* unlikely, but may pose */ |
#define | lseek64 lseek /* unlikely, but may pose */ |
#define | O_BINARY 0 |
Functions | |
static IOR_offset_t | POSIX_Xfer (int, void *, IOR_size_t *, IOR_offset_t, IOR_param_t *) |
static void | POSIX_Fsync (void *, IOR_param_t *) |
static void | POSIX_Sync (IOR_param_t *) |
option_help * | POSIX_options (void **init_backend_options, void *init_values) |
void * | POSIX_Create (char *testFileName, IOR_param_t *param) |
int | POSIX_Mknod (char *testFileName) |
void * | POSIX_Open (char *testFileName, IOR_param_t *param) |
void | POSIX_Close (void *fd, IOR_param_t *param) |
void | POSIX_Delete (char *testFileName, IOR_param_t *param) |
IOR_offset_t | POSIX_GetFileSize (IOR_param_t *test, MPI_Comm testComm, char *testFileName) |
Variables | |
ior_aiori_t | posix_aiori |
#define lseek64 lseek /* unlikely, but may pose */ |
Definition at line 63 of file aiori-POSIX.c.
Referenced by POSIX_Xfer().
#define O_BINARY 0 |
Definition at line 67 of file aiori-POSIX.c.
Referenced by POSIX_Create(), and POSIX_Open().
#define open64 open /* unlikely, but may pose */ |
Definition at line 59 of file aiori-POSIX.c.
Referenced by POSIX_Create(), and POSIX_Open().
void POSIX_Close | ( | void * | fd, |
IOR_param_t * | param | ||
) |
Definition at line 602 of file aiori-POSIX.c.
References IOR_param_t::dryRun, and ERRF.
Referenced by MMAP_Close().
void* POSIX_Create | ( | char * | testFileName, |
IOR_param_t * | param | ||
) |
Definition at line 321 of file aiori-POSIX.c.
References IOR_param_t::backend_options, IOR_param_t::beegfs_chunkSize, IOR_param_t::beegfs_numTargets, posix_options_t::direct_io, IOR_param_t::dryRun, ERR, ERRF, errno, EWARN, IOR_param_t::filePerProc, IOR_param_t::gpfs_release_token, IOR_param_t::lustre_ignore_locks, IOR_param_t::lustre_set_striping, IOR_param_t::lustre_start_ost, IOR_param_t::lustre_stripe_count, IOR_param_t::lustre_stripe_size, MPI_CHECK, NULL, o, O_BINARY, open64, rank, set_o_direct_flag(), testComm, and TRUE.
Referenced by MMAP_Create().
void POSIX_Delete | ( | char * | testFileName, |
IOR_param_t * | param | ||
) |
Definition at line 614 of file aiori-POSIX.c.
References IOR_param_t::dryRun, EWARNF, and rank.
|
static |
Definition at line 583 of file aiori-POSIX.c.
References EWARNF.
Referenced by POSIX_Xfer().
IOR_offset_t POSIX_GetFileSize | ( | IOR_param_t * | test, |
MPI_Comm | testComm, | ||
char * | testFileName | ||
) |
Definition at line 627 of file aiori-POSIX.c.
References IOR_param_t::dryRun, ERRF, IOR_param_t::filePerProc, MPI_CHECK, rank, TRUE, and WARN.
int POSIX_Mknod | ( | char * | testFileName | ) |
Definition at line 439 of file aiori-POSIX.c.
References ERR.
void* POSIX_Open | ( | char * | testFileName, |
IOR_param_t * | param | ||
) |
Definition at line 453 of file aiori-POSIX.c.
References IOR_param_t::backend_options, posix_options_t::direct_io, IOR_param_t::dryRun, ERR, ERRF, IOR_param_t::gpfs_release_token, IOR_param_t::lustre_ignore_locks, NULL, o, O_BINARY, open64, set_o_direct_flag(), TRUE, verbose, and VERBOSE_1.
Referenced by MMAP_Open().
option_help* POSIX_options | ( | void ** | init_backend_options, |
void * | init_values | ||
) |
Definition at line 83 of file aiori-POSIX.c.
References posix_options_t::direct_io, LAST_OPTION, NULL, o, and OPTION_FLAG.
|
static |
Definition at line 590 of file aiori-POSIX.c.
References FAIL.
|
static |
Definition at line 498 of file aiori-POSIX.c.
References IOR_param_t::dryRun, ERR, ERRF, IOR_param_t::fsyncPerWrite, IOR_param_t::gpfs_hint_access, lseek64, MAX_RETRY, MPI_CHECK, IOR_param_t::offset, POSIX_Fsync(), rank, rc, IOR_param_t::singleXferAttempt, TRUE, verbose, VERBOSE_4, and WRITE.
ior_aiori_t posix_aiori |
Definition at line 107 of file aiori-POSIX.c.