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"
#include "aiori-POSIX.h"
Go to the source code of this file.
Data Structures | |
struct | posix_fd |
Macros | |
#define | open64 open /* unlikely, but may pose */ |
#define | lseek64 lseek /* unlikely, but may pose */ |
#define | O_BINARY 0 |
Variables | |
ior_aiori_t | posix_aiori |
static aiori_xfer_hint_t * | hints = NULL |
#define lseek64 lseek /* unlikely, but may pose */ |
Definition at line 79 of file aiori-POSIX.c.
Referenced by POSIX_Xfer().
#define O_BINARY 0 |
Definition at line 83 of file aiori-POSIX.c.
Referenced by POSIX_Create(), and POSIX_Open().
#define open64 open /* unlikely, but may pose */ |
Definition at line 75 of file aiori-POSIX.c.
Referenced by POSIX_Create(), and POSIX_Open().
int POSIX_check_params | ( | aiori_mod_opt_t * | param | ) |
Definition at line 195 of file aiori-POSIX.c.
References posix_options_t::beegfs_chunkSize, posix_options_t::direct_io, ERR, ERRF, EWARNF, posix_options_t::gpuDirect, ISPOWEROFTWO, posix_options_t::lustre_set_striping, posix_options_t::lustre_stripe_count, posix_options_t::lustre_stripe_size, o, offset, rc, verbose, VERBOSE_0, VERBOSE_2, WARN, and WRITE.
Referenced by aio_check_params().
void POSIX_Close | ( | aiori_fd_t * | afd, |
aiori_mod_opt_t * | param | ||
) |
Definition at line 688 of file aiori-POSIX.c.
References aiori_xfer_hint_t::dryRun, ERRF, posix_options_t::gpuDirect, and o.
Referenced by aio_Close(), and MMAP_Close().
aiori_fd_t* POSIX_Create | ( | char * | testFileName, |
int | flags, | ||
aiori_mod_opt_t * | param | ||
) |
Definition at line 401 of file aiori-POSIX.c.
References posix_options_t::beegfs_chunkSize, posix_options_t::beegfs_numTargets, posix_options_t::direct_io, aiori_xfer_hint_t::dryRun, ERRF, errno, EWARN, posix_fd::fd, aiori_xfer_hint_t::filePerProc, posix_options_t::gpfs_release_token, posix_options_t::gpuDirect, posix_options_t::lustre_ignore_locks, posix_options_t::lustre_set_striping, posix_options_t::lustre_start_ost, posix_options_t::lustre_stripe_count, posix_options_t::lustre_stripe_size, MPI_CHECK, o, O_BINARY, open64, rank, safeMalloc(), set_o_direct_flag(), testComm, and TRUE.
Referenced by aio_create(), and MMAP_Create().
void POSIX_Delete | ( | char * | testFileName, |
aiori_mod_opt_t * | param | ||
) |
Definition at line 708 of file aiori-POSIX.c.
References aiori_xfer_hint_t::dryRun, EWARNF, and rank.
|
static |
Definition at line 752 of file aiori-POSIX.c.
void POSIX_Fsync | ( | aiori_fd_t * | afd, |
aiori_mod_opt_t * | param | ||
) |
Definition at line 668 of file aiori-POSIX.c.
References EWARNF.
Referenced by aio_Fsync(), and POSIX_Xfer().
IOR_offset_t POSIX_GetFileSize | ( | aiori_mod_opt_t * | test, |
char * | testFileName | ||
) |
Definition at line 731 of file aiori-POSIX.c.
References aiori_xfer_hint_t::dryRun, and ERRF.
|
static |
Definition at line 746 of file aiori-POSIX.c.
int POSIX_Mknod | ( | char * | testFileName | ) |
Definition at line 515 of file aiori-POSIX.c.
References ERR.
aiori_fd_t* POSIX_Open | ( | char * | testFileName, |
int | flags, | ||
aiori_mod_opt_t * | param | ||
) |
Definition at line 529 of file aiori-POSIX.c.
References posix_options_t::direct_io, aiori_xfer_hint_t::dryRun, EINFO, ERRF, errno, posix_fd::fd, posix_options_t::gpfs_release_token, posix_options_t::gpuDirect, posix_options_t::lustre_ignore_locks, o, O_BINARY, open64, safeMalloc(), set_o_direct_flag(), TRUE, verbose, and VERBOSE_1.
Referenced by aio_Open(), and MMAP_Open().
option_help* POSIX_options | ( | aiori_mod_opt_t ** | init_backend_options, |
aiori_mod_opt_t * | init_values | ||
) |
Definition at line 113 of file aiori-POSIX.c.
References posix_options_t::beegfs_chunkSize, posix_options_t::beegfs_numTargets, posix_options_t::direct_io, posix_options_t::gpfs_hint_access, posix_options_t::gpfs_release_token, posix_options_t::gpuDirect, LAST_OPTION, posix_options_t::lustre_ignore_locks, posix_options_t::lustre_start_ost, posix_options_t::lustre_stripe_count, posix_options_t::lustre_stripe_size, NULL, o, OPTION_FLAG, and OPTION_OPTIONAL_ARGUMENT.
Referenced by aio_options().
int POSIX_Rename | ( | const char * | oldfile, |
const char * | newfile, | ||
aiori_mod_opt_t * | module_options | ||
) |
Definition at line 717 of file aiori-POSIX.c.
References aiori_xfer_hint_t::dryRun, EWARNF, and rank.
void POSIX_Sync | ( | aiori_mod_opt_t * | param | ) |
Definition at line 676 of file aiori-POSIX.c.
References FAIL.
Referenced by aio_Sync().
|
static |
Definition at line 572 of file aiori-POSIX.c.
References aiori_xfer_hint_t::dryRun, EINFO, ERR, ERRF, EWARNF, posix_fd::fd, aiori_xfer_hint_t::fsyncPerWrite, posix_options_t::gpfs_hint_access, posix_options_t::gpuDirect, lseek64, MAX_RETRY, o, POSIX_Fsync(), rank, rc, aiori_xfer_hint_t::singleXferAttempt, TRUE, verbose, VERBOSE_4, and WRITE.
void POSIX_xfer_hints | ( | aiori_xfer_hint_t * | params | ) |
Definition at line 191 of file aiori-POSIX.c.
Referenced by aio_xfer_hints(), and MMAP_xfer_hints().
|
static |
Definition at line 189 of file aiori-POSIX.c.
ior_aiori_t posix_aiori |
Definition at line 160 of file aiori-POSIX.c.