Motr  M0
main.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <clovis/clovis.h>
#include <clovis/clovis_internal.h>
#include "lib/trace.h"
#include "fdmi/fdmi.h"
#include "fdmi/service.h"
#include "fdmi/plugin_dock.h"
#include "fdmi/plugin_dock_internal.h"
#include "reqh/reqh.h"
Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define NOBJS   40
 
#define SMALL_UNIT_SIZE   (4096)
 
#define LARGE_UNIT_SIZE   (1024*4096)
 

Functions

static int m0_write_n_blocks (int nblocks, int unit_size, struct m0_clovis_obj *obj, int off, void *data)
 
static int m0_open_obj (struct m0_clovis_obj *obj)
 
static int m0_create_obj (struct m0_uint128 id, int layout, struct m0_clovis_obj *obj)
 
void list_container (struct m0_uint128 container_id)
 
int main (int argc, char **argv)
 

Variables

struct m0_clovis_realm my_realm
 
static uint64_t small_layout
 
static uint64_t large_layout
 
static int large_count
 
static int small_count
 
static struct m0_clovis * m0c
 
static struct m0_pool pool
 
static struct m0_fid CLASSIFY_PLUGIN_FID
 

Macro Definition Documentation

◆ LARGE_UNIT_SIZE

#define LARGE_UNIT_SIZE   (1024*4096)

Definition at line 17 of file main.c.

◆ NOBJS

#define NOBJS   40

Definition at line 14 of file main.c.

◆ SMALL_UNIT_SIZE

#define SMALL_UNIT_SIZE   (4096)

Definition at line 16 of file main.c.

Function Documentation

◆ list_container()

void list_container ( struct m0_uint128  container_id)

Definition at line 125 of file main.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ m0_create_obj()

static int m0_create_obj ( struct m0_uint128  id,
int  layout,
struct m0_clovis_obj *  obj 
)
static

Definition at line 100 of file main.c.

Here is the caller graph for this function:

◆ m0_open_obj()

static int m0_open_obj ( struct m0_clovis_obj *  obj)
static

Definition at line 79 of file main.c.

Here is the caller graph for this function:

◆ m0_write_n_blocks()

static int m0_write_n_blocks ( int  nblocks,
int  unit_size,
struct m0_clovis_obj *  obj,
int  off,
void *  data 
)
static

Definition at line 34 of file main.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 151 of file main.c.

Here is the call graph for this function:

Variable Documentation

◆ CLASSIFY_PLUGIN_FID

struct m0_fid CLASSIFY_PLUGIN_FID
static
Initial value:
= {
.f_container = M0_FDMI_REC_TYPE_FOL,
.f_key = 0x1
}

Definition at line 28 of file main.c.

◆ large_count

int large_count
static

Definition at line 23 of file main.c.

◆ large_layout

uint64_t large_layout
static

Definition at line 21 of file main.c.

◆ m0c

struct m0_clovis* m0c
static

Definition at line 25 of file main.c.

◆ my_realm

struct m0_clovis_realm my_realm

Definition at line 19 of file main.c.

◆ pool

struct m0_pool pool
static

Definition at line 26 of file main.c.

◆ small_count

int small_count
static

Definition at line 24 of file main.c.

◆ small_layout

uint64_t small_layout
static

Definition at line 20 of file main.c.