|
Motr
M0
|
#include <endian.h>#include <unistd.h>#include "ut/ut.h"#include "be/ut/helper.h"#include "be/tx.h"#include "pool/pool.h"#include "reqh/reqh.h"#include "reqh/reqh_service.h"#include "dix/cm/cm.h"#include "rpc/rpc_opcodes.h"#include "cas/cas.h"#include "cas/ctg_store.h"#include "dix/cm/iter.h"#include "dix/fid_convert.h"#include "lib/finject.h"#include "lib/trace.h"
Go to the source code of this file.
Data Structures | |
| struct | iter_ut_fom |
Macros | |
| #define | M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_UT |
| #define | POOL_WIDTH 10 |
| #define | NODES 10 |
| #define | DATA_NR 1 |
| #define | FAILURES_NR 3 |
| #define | SPARE_NR 3 |
| #define | DEVS_ID_SHIFT 100 |
Enumerations | |
| enum | { RPC_CUTOFF = 4096 } |
| enum | iter_ut_fom_op { ITER_UT_OP_META_INSERT, ITER_UT_OP_META_DELETE, ITER_UT_OP_META_LOOKUP, ITER_UT_OP_CTIDX_INSERT, ITER_UT_OP_CTIDX_DELETE, ITER_UT_OP_KV_INSERT, ITER_UT_OP_KV_DELETE } |
| enum | iter_ut_fom_phase { ITER_UT_FOM_INIT = M0_FOM_PHASE_INIT, ITER_UT_FOM_FINAL = M0_FOM_PHASE_FINISH, ITER_UT_FOM_DONE = M0_FOM_PHASE_NR, ITER_UT_FOM_INIT_WAIT, ITER_UT_FOM_CTIDX_LOCK, ITER_UT_FOM_META_LOCK, ITER_UT_FOM_EXEC, ITER_UT_FOM_TX_COMMIT } |
Functions | |
| static struct m0_dix_cm_iter * | iter_ut_iter (struct m0_reqh_service *svc) |
| static void | iter_ut_fom_fini (struct m0_fom *fom0) |
| static uint64_t | iter_ut_fom_locality (const struct m0_fom *fom) |
| static void | iter_ut_fom_init (struct iter_ut_fom *fom) |
| static int | iter_ut_fom_exec (struct iter_ut_fom *fom) |
| static void | iter_ut_fom_result (struct iter_ut_fom *fom) |
| static int | iter_ut_fom_tick (struct m0_fom *fom0) |
| static void | iter_ut_fom_op_sync (struct iter_ut_fom *fom) |
| static void | iter_ut_fom_op (struct iter_ut_fom *fom, struct m0_semaphore *sem) |
| static void | iter_ut_meta_insert (struct m0_fid *cctg_fid) |
| static struct m0_cas_ctg * | iter_ut_meta_lookup (struct m0_fid *cctg_fid) |
| static void | iter_ut_ctidx_insert (struct m0_fid *cctg_fid) |
| static void | iter_ut_meta_delete_async (struct iter_ut_fom *fom, struct m0_fid *cctg_fid, struct m0_semaphore *sem) |
| static void | iter_ut_ctidx_delete_async (struct iter_ut_fom *fom, struct m0_fid *cctg_fid, struct m0_semaphore *sem) |
| static void | iter_ut_insert (struct m0_cas_ctg *cctg, uint64_t key, uint64_t val) |
| static void | iter_ut_delete (struct m0_cas_ctg *cctg, uint64_t key, uint64_t val) |
| static void | device_state_set (uint64_t pool_device_id, int dev_state) |
| static void | device_repaired_set (uint64_t pool_device_id) |
| static void | device_repairing_set (uint64_t pool_device_id) |
| static void | device_rebalancing_set (uint64_t pool_device_id) |
| static void | spare_slot_unused_set () |
| static void | iter_ut_devs_setup () |
| static void | iter_ut_pool_init () |
| static void | iter_ut_reqh_init (void) |
| static void | iter_ut_init (struct m0_reqh_service **svc, struct m0_reqh_service_type *stype) |
| static void | iter_ut_pool_fini () |
| static void | iter_ut_reqh_fini () |
| static void | iter_ut_fini (struct m0_reqh_service *svc) |
| static void | start_stop (void) |
| static int | iter_ut_next_sync (struct m0_dix_cm_iter *iter, struct m0_buf *key, struct m0_buf *val, uint32_t *sdev_id) |
| static void | empty_store (void) |
| static void | empty_cctg (void) |
| static void | cctg_not_found (void) |
| static uint64_t | buf_value (const struct m0_buf *buf) |
| static void | one_rec (void) |
| static void | multi_rec (void) |
| static void | rep_coordinator (void) |
| static void | one_dev_fail (void) |
| static void | two_devs_fail (void) |
| static void | outside_dev_fail (void) |
| static void | empty_spare_fail (void) |
| static void | filled_spare_fail (void) |
| static void | many_keys_rep (void) |
| static void | user_concur_rep (void) |
| static void | ctg_del_concur_rep1 (void) |
| static void | ctg_del_concur_rep2 (void) |
| static void | one_dev_reb (void) |
| static void | reb_coordinator (void) |
| static void | outside_dev_reb (void) |
| static void | reb_unused (void) |
| static void | many_keys_reb (void) |
| static void | user_concur_reb (void) |
Variables | |
| static struct m0_reqh | reqh |
| static struct m0_be_ut_backend | be |
| static struct m0_be_seg * | seg0 |
| static struct m0_reqh_service * | repair_svc |
| static struct m0_reqh_service * | rebalance_svc |
| static struct m0_fom_type | ut_fom_type |
| static struct m0_fom_type | ut_fom_type_rep |
| static struct m0_fom_type | ut_fom_type_reb |
| static struct m0_pool | pool |
| static struct m0_pools_common | pc |
| static struct m0_pool_version | pv |
| static struct m0_fid | pv_fid = M0_FID_TINIT('v', 1, 1) |
| static int | spare_usage_pos = 0 |
| static struct m0_sm_state_descr | iter_ut_fom_phases [] |
| static const struct m0_sm_conf | iter_ut_fom_conf |
| static const struct m0_fom_ops | iter_ut_fom_ops |
| static const struct m0_fom_type_ops | iter_ut_fom_type_ops |
| struct m0_ut_suite | dix_cm_iter_ut |
| enum iter_ut_fom_op |
| enum iter_ut_fom_phase |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| struct m0_ut_suite dix_cm_iter_ut |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |