IOR
|
#include <stdint.h>
#include <assert.h>
#include <unistd.h>
#include <strings.h>
#include <sys/types.h>
#include <libgen.h>
#include <stdbool.h>
#include <gurt/common.h>
#include <daos.h>
#include "ior.h"
#include "aiori.h"
#include "iordef.h"
Go to the source code of this file.
Data Structures | |
struct | daos_options |
Macros | |
#define | _BSD_SOURCE |
#define | IOR_DAOS_MUR_SEED 0xDEAD10CC |
#define | DCHECK(rc, format, ...) |
#define | INFO(level, format, ...) |
#define | GERR(format, ...) |
Enumerations | |
enum | handleType { POOL_HANDLE, CONT_HANDLE, ARRAY_HANDLE, POOL_HANDLE, CONT_HANDLE, DFS_HANDLE } |
Functions | |
static void | DAOS_Init () |
static void | DAOS_Fini () |
static void * | DAOS_Create (char *, IOR_param_t *) |
static void * | DAOS_Open (char *, IOR_param_t *) |
static int | DAOS_Access (const char *, int, IOR_param_t *) |
static IOR_offset_t | DAOS_Xfer (int, void *, IOR_size_t *, IOR_offset_t, IOR_param_t *) |
static void | DAOS_Close (void *, IOR_param_t *) |
static void | DAOS_Delete (char *, IOR_param_t *) |
static char * | DAOS_GetVersion () |
static void | DAOS_Fsync (void *, IOR_param_t *) |
static IOR_offset_t | DAOS_GetFileSize (IOR_param_t *, MPI_Comm, char *) |
static option_help * | DAOS_options () |
static void | HandleDistribute (daos_handle_t *handle, enum handleType type) |
static void | gen_oid (const char *name, daos_obj_id_t *oid) |
Variables | |
static struct daos_options | o |
static option_help | options [] |
ior_aiori_t | daos_aiori |
static daos_handle_t | poh |
static daos_handle_t | coh |
static daos_handle_t | aoh |
static daos_oclass_id_t | objectClass = OC_SX |
static bool | daos_initialized = false |
#define _BSD_SOURCE |
Definition at line 13 of file aiori-DAOS.c.
#define DCHECK | ( | rc, | |
format, | |||
... | |||
) |
Definition at line 121 of file aiori-DAOS.c.
Referenced by DAOS_Close(), DAOS_Create(), DAOS_Delete(), DAOS_Fini(), DAOS_GetFileSize(), DAOS_Init(), DAOS_Open(), DAOS_Xfer(), and HandleDistribute().
#define GERR | ( | format, | |
... | |||
) |
Definition at line 141 of file aiori-DAOS.c.
Referenced by DAOS_Access(), DAOS_Close(), DAOS_Delete(), DAOS_GetFileSize(), DAOS_Init(), and DAOS_Open().
#define INFO | ( | level, | |
format, | |||
... | |||
) |
Definition at line 134 of file aiori-DAOS.c.
Referenced by DAOS_Fini(), and DAOS_Init().
#define IOR_DAOS_MUR_SEED 0xDEAD10CC |
Definition at line 104 of file aiori-DAOS.c.
Referenced by gen_oid().
enum handleType |
Enumerator | |
---|---|
POOL_HANDLE | |
CONT_HANDLE | |
ARRAY_HANDLE | |
POOL_HANDLE | |
CONT_HANDLE | |
DFS_HANDLE |
Definition at line 106 of file aiori-DAOS.c.
|
static |
Convert file name into object ID
Definition at line 366 of file aiori-DAOS.c.
References aoh, daos_options::chunk_size, coh, gen_oid(), GERR, NULL, and rc.
|
static |
Definition at line 449 of file aiori-DAOS.c.
References aoh, daos_initialized, DCHECK, GERR, NULL, and rc.
|
static |
Convert file name into object ID
Create the array
Distribute the array handle if not FPP
Definition at line 343 of file aiori-DAOS.c.
References aoh, ARRAY_HANDLE, daos_options::chunk_size, coh, DCHECK, IOR_param_t::filePerProc, gen_oid(), HandleDistribute(), NULL, rank, and rc.
|
static |
Convert file name into object ID
open the array to verify it exists
Definition at line 463 of file aiori-DAOS.c.
References aoh, daos_options::chunk_size, coh, daos_initialized, DCHECK, gen_oid(), GERR, NULL, and rc.
|
static |
Definition at line 279 of file aiori-DAOS.c.
References coh, daos_options::cont, daos_initialized, DCHECK, daos_options::destroy, INFO, MPI_CHECK, NULL, poh, daos_options::pool, rank, rc, and VERBOSE_1.
|
static |
Definition at line 501 of file aiori-DAOS.c.
|
static |
Convert file name into object ID
open the array to verify it exists
Definition at line 507 of file aiori-DAOS.c.
References aoh, daos_options::chunk_size, coh, daos_initialized, DCHECK, IOR_param_t::filePerProc, gen_oid(), GERR, NULL, rank, rc, and size.
|
static |
Definition at line 492 of file aiori-DAOS.c.
|
static |
Definition at line 212 of file aiori-DAOS.c.
References aoh, coh, daos_options::cont, CONT_HANDLE, daos_initialized, DCHECK, ERR, GERR, daos_options::group, HandleDistribute(), INFO, NULL, objectClass, daos_options::oclass, poh, daos_options::pool, POOL_HANDLE, rank, rc, daos_options::svcl, VERBOSE_1, and VERBOSE_2.
|
static |
Convert file name into object ID
Open the array
Distribute the array handle if not FPP
Definition at line 389 of file aiori-DAOS.c.
References aoh, ARRAY_HANDLE, daos_options::chunk_size, coh, DCHECK, IOR_param_t::filePerProc, gen_oid(), GERR, HandleDistribute(), NULL, rank, and rc.
|
static |
Definition at line 206 of file aiori-DAOS.c.
References options.
|
static |
set array location
set memory location
Definition at line 417 of file aiori-DAOS.c.
References aoh, DCHECK, NULL, IOR_param_t::offset, rc, and WRITE.
|
static |
Definition at line 333 of file aiori-DAOS.c.
References IOR_DAOS_MUR_SEED, and objectClass.
Referenced by DAOS_Access(), DAOS_Create(), DAOS_Delete(), DAOS_GetFileSize(), and DAOS_Open().
|
static |
Definition at line 149 of file aiori-DAOS.c.
References coh, CONT_HANDLE, DCHECK, ERR, MPI_CHECK, NULL, poh, POOL_HANDLE, rank, and rc.
Referenced by DAOS_Create(), DAOS_Init(), and DAOS_Open().
|
static |
Definition at line 114 of file aiori-DAOS.c.
Referenced by DAOS_Access(), DAOS_Close(), DAOS_Create(), DAOS_Delete(), DAOS_GetFileSize(), DAOS_Init(), DAOS_Open(), and DAOS_Xfer().
|
static |
Definition at line 113 of file aiori-DAOS.c.
Referenced by DAOS_Access(), DAOS_Create(), DAOS_Delete(), DAOS_Fini(), DAOS_GetFileSize(), DAOS_Init(), DAOS_Open(), and HandleDistribute().
ior_aiori_t daos_aiori |
Definition at line 84 of file aiori-DAOS.c.
|
static |
Definition at line 116 of file aiori-DAOS.c.
Referenced by DAOS_Close(), DAOS_Delete(), DAOS_Fini(), DAOS_GetFileSize(), and DAOS_Init().
|
static |
|
static |
Definition at line 115 of file aiori-DAOS.c.
Referenced by DAOS_Init(), and gen_oid().
|
static |
Definition at line 55 of file aiori-DAOS.c.
Referenced by DAOS_options().
|
static |
Definition at line 112 of file aiori-DAOS.c.
Referenced by DAOS_Fini(), DAOS_Init(), and HandleDistribute().