IOR
|
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <cephfs/libcephfs.h>
#include "ior.h"
#include "iordef.h"
#include "aiori.h"
#include "utilities.h"
Go to the source code of this file.
Data Structures | |
struct | cephfs_options |
Macros | |
#define | CEPH_O_RDONLY 00000000 |
#define | CEPH_O_WRONLY 00000001 |
#define | CEPH_O_RDWR 00000002 |
#define | CEPH_O_CREAT 00000100 |
#define | CEPH_O_EXCL 00000200 |
#define | CEPH_O_TRUNC 00001000 |
#define | CEPH_O_LAZY 00020000 |
#define | CEPH_O_DIRECTORY 00200000 |
#define | CEPH_O_NOFOLLOW 00400000 |
#define | CEPHFS_ERR(__err_str, __ret) |
Functions | |
static void | CEPHFS_Init () |
static void | CEPHFS_Final () |
static void * | CEPHFS_Create (char *, IOR_param_t *) |
static void * | CEPHFS_Open (char *, IOR_param_t *) |
static IOR_offset_t | CEPHFS_Xfer (int, void *, IOR_size_t *, IOR_offset_t, IOR_param_t *) |
static void | CEPHFS_Close (void *, IOR_param_t *) |
static void | CEPHFS_Delete (char *, IOR_param_t *) |
static void | CEPHFS_Fsync (void *, IOR_param_t *) |
static IOR_offset_t | CEPHFS_GetFileSize (IOR_param_t *, MPI_Comm, char *) |
static int | CEPHFS_StatFS (const char *, ior_aiori_statfs_t *, IOR_param_t *) |
static int | CEPHFS_MkDir (const char *, mode_t, IOR_param_t *) |
static int | CEPHFS_RmDir (const char *, IOR_param_t *) |
static int | CEPHFS_Access (const char *, int, IOR_param_t *) |
static int | CEPHFS_Stat (const char *, struct stat *, IOR_param_t *) |
static void | CEPHFS_Sync (IOR_param_t *) |
static option_help * | CEPHFS_options () |
static const char * | pfix (const char *path) |
Variables | |
static struct cephfs_options | o |
static option_help | options [] |
static struct ceph_mount_info * | cmount |
ior_aiori_t | cephfs_aiori |
#define CEPH_O_CREAT 00000100 |
Definition at line 34 of file aiori-CEPHFS.c.
Referenced by CEPHFS_Open().
#define CEPH_O_DIRECTORY 00200000 |
Definition at line 38 of file aiori-CEPHFS.c.
#define CEPH_O_EXCL 00000200 |
Definition at line 35 of file aiori-CEPHFS.c.
Referenced by CEPHFS_Open().
#define CEPH_O_LAZY 00020000 |
Definition at line 37 of file aiori-CEPHFS.c.
#define CEPH_O_NOFOLLOW 00400000 |
Definition at line 39 of file aiori-CEPHFS.c.
#define CEPH_O_RDONLY 00000000 |
Definition at line 31 of file aiori-CEPHFS.c.
Referenced by CEPHFS_Open().
#define CEPH_O_RDWR 00000002 |
Definition at line 33 of file aiori-CEPHFS.c.
Referenced by CEPHFS_Open().
#define CEPH_O_TRUNC 00001000 |
Definition at line 36 of file aiori-CEPHFS.c.
Referenced by CEPHFS_Open().
#define CEPH_O_WRONLY 00000001 |
Definition at line 32 of file aiori-CEPHFS.c.
Referenced by CEPHFS_Open().
#define CEPHFS_ERR | ( | __err_str, | |
__ret | |||
) |
Definition at line 105 of file aiori-CEPHFS.c.
Referenced by CEPHFS_Close(), CEPHFS_Delete(), CEPHFS_Final(), CEPHFS_Fsync(), CEPHFS_GetFileSize(), CEPHFS_Init(), CEPHFS_Open(), CEPHFS_StatFS(), CEPHFS_Sync(), and CEPHFS_Xfer().
|
static |
Definition at line 367 of file aiori-CEPHFS.c.
References cmount, and pfix().
|
static |
Definition at line 276 of file aiori-CEPHFS.c.
References CEPHFS_ERR, and cmount.
|
static |
Definition at line 187 of file aiori-CEPHFS.c.
References CEPHFS_Open().
|
static |
Definition at line 287 of file aiori-CEPHFS.c.
References CEPHFS_ERR, cmount, and pfix().
|
static |
Definition at line 173 of file aiori-CEPHFS.c.
References CEPHFS_ERR, cmount, and NULL.
|
static |
Definition at line 267 of file aiori-CEPHFS.c.
References CEPHFS_ERR, and cmount.
Referenced by CEPHFS_Xfer().
|
static |
Definition at line 296 of file aiori-CEPHFS.c.
References CEPHFS_ERR, cmount, IOR_param_t::filePerProc, MPI_CHECK, pfix(), rank, TRUE, and WARN.
|
static |
Definition at line 126 of file aiori-CEPHFS.c.
References CEPHFS_ERR, cmount, cephfs_options::conf, cephfs_options::prefix, cephfs_options::user, and WARN.
|
static |
Definition at line 357 of file aiori-CEPHFS.c.
References cmount, and pfix().
|
static |
Definition at line 192 of file aiori-CEPHFS.c.
References CEPH_O_CREAT, CEPH_O_EXCL, CEPH_O_RDONLY, CEPH_O_RDWR, CEPH_O_TRUNC, CEPH_O_WRONLY, CEPHFS_ERR, cmount, IOR_APPEND, IOR_CREAT, IOR_DIRECT, IOR_EXCL, IOR_RDONLY, IOR_RDWR, IOR_TRUNC, IOR_WRONLY, IOR_param_t::openFlags, and pfix().
Referenced by CEPHFS_Create().
|
static |
Definition at line 122 of file aiori-CEPHFS.c.
References options.
|
static |
Definition at line 362 of file aiori-CEPHFS.c.
References cmount, and pfix().
|
static |
Definition at line 373 of file aiori-CEPHFS.c.
References cmount, and pfix().
|
static |
Definition at line 333 of file aiori-CEPHFS.c.
References CEPHFS_ERR, cmount, 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, pfix(), and WARN.
|
static |
Definition at line 378 of file aiori-CEPHFS.c.
References CEPHFS_ERR, and cmount.
|
static |
Definition at line 234 of file aiori-CEPHFS.c.
References CEPHFS_ERR, CEPHFS_Fsync(), cmount, IOR_param_t::fsyncPerWrite, IOR_param_t::offset, size, TRUE, and WRITE.
|
static |
Definition at line 111 of file aiori-CEPHFS.c.
References cephfs_options::prefix.
Referenced by CEPHFS_Access(), CEPHFS_Delete(), CEPHFS_GetFileSize(), CEPHFS_MkDir(), CEPHFS_Open(), CEPHFS_RmDir(), CEPHFS_Stat(), and CEPHFS_StatFS().
ior_aiori_t cephfs_aiori |
Definition at line 83 of file aiori-CEPHFS.c.
|
static |
Definition at line 61 of file aiori-CEPHFS.c.
Referenced by CEPHFS_Access(), CEPHFS_Close(), CEPHFS_Delete(), CEPHFS_Final(), CEPHFS_Fsync(), CEPHFS_GetFileSize(), CEPHFS_Init(), CEPHFS_MkDir(), CEPHFS_Open(), CEPHFS_RmDir(), CEPHFS_Stat(), CEPHFS_StatFS(), CEPHFS_Sync(), and CEPHFS_Xfer().
|
static |
Definition at line 48 of file aiori-CEPHFS.c.
Referenced by createGlobalOptions(), DUMMY_Create(), DUMMY_options(), DUMMY_Xfer(), HDF5_Open(), HDF5_options(), IME_Open(), IME_options(), ior_mmap_file(), MMAP_Close(), MMAP_Fsync(), MMAP_options(), MMAP_Xfer(), option_parse(), option_parse_token(), POSIX_Create(), POSIX_Open(), POSIX_options(), print_current_option_section(), and print_help_section().
|
static |
Definition at line 54 of file aiori-CEPHFS.c.
Referenced by CEPHFS_options(), createGlobalOptions(), mdtest_run(), and ParseCommandLine().