Motr
M0
|
Data Structures | |
struct | m0_rios_buffer_pool |
struct | m0_reqh_io_service |
struct | m0_ios_mds_conn |
struct | m0_ios_mds_conn_map |
Macros | |
#define | M0_BYTECOUNT_USER_ID 8881212 |
Enumerations | |
enum | { M0T1FS_MAX_NR_MDS = 1024 } |
Functions | |
M0_INTERNAL int | m0_ios_register (void) |
M0_INTERNAL void | m0_ios_unregister (void) |
M0_INTERNAL bool | m0_reqh_io_service_invariant (const struct m0_reqh_io_service *rios) |
M0_INTERNAL void | m0_ios_cdom_get (struct m0_reqh *reqh, struct m0_cob_domain **out) |
M0_INTERNAL void | m0_ios_cdom_fini (struct m0_reqh *reqh) |
M0_INTERNAL void | m0_ios_mds_conn_fini (struct m0_reqh *reqh) |
M0_INTERNAL int | m0_ios_mds_getattr (struct m0_reqh *reqh, const struct m0_fid *gfid, struct m0_cob_attr *attr) |
M0_INTERNAL int | m0_ios_getattr (struct m0_reqh *reqh, const struct m0_fid *gfid, uint64_t index, struct m0_cob_attr *attr) |
M0_INTERNAL int | m0_ios_mds_getattr_async (struct m0_reqh *reqh, const struct m0_fid *gfid, struct m0_cob_attr *attr, void(*cb)(void *arg, int rc), void *arg) |
M0_INTERNAL int | m0_ios_getattr_async (struct m0_reqh *reqh, const struct m0_fid *gfid, struct m0_cob_attr *attr, uint64_t index, void(*cb)(void *arg, int rc), void *arg) |
M0_INTERNAL int | m0_ios_cob_getattr_async (const struct m0_fid *gfid, struct m0_cob_attr *attr, uint64_t cob_idx, struct m0_pool_version *pv, void(*cb)(void *arg, int rc), void *arg) |
M0_INTERNAL void | m0_ios_net_buffer_pool_size_set (uint32_t buffer_pool_size) |
I/O Service initialization and operations controlled by request handler.
I/O Service defines service type operation vector -
I/O Service defines service operation vector -
State transition diagram for I/O Service will be available at Request handler
#define M0_BYTECOUNT_USER_ID 8881212 |
Temporary hard coded user id to be used for bytecount btree key
Definition at line 72 of file io_service.h.
anonymous enum |
Enumerator | |
---|---|
M0T1FS_MAX_NR_MDS |
Definition at line 136 of file io_service.h.
M0_INTERNAL void m0_ios_cdom_fini | ( | struct m0_reqh * | reqh | ) |
Definition at line 474 of file io_service.c.
M0_INTERNAL void m0_ios_cdom_get | ( | struct m0_reqh * | reqh, |
struct m0_cob_domain ** | out | ||
) |
Definition at line 463 of file io_service.c.
M0_INTERNAL int m0_ios_cob_getattr_async | ( | const struct m0_fid * | gfid, |
struct m0_cob_attr * | attr, | ||
uint64_t | cob_idx, | ||
struct m0_pool_version * | pv, | ||
void(*)(void *arg, int rc) | cb, | ||
void * | arg | ||
) |
Definition at line 891 of file io_service.c.
M0_INTERNAL int m0_ios_getattr | ( | struct m0_reqh * | reqh, |
const struct m0_fid * | gfid, | ||
uint64_t | index, | ||
struct m0_cob_attr * | attr | ||
) |
Getattr of file from ioservice synchronously.
Definition at line 814 of file io_service.c.
M0_INTERNAL int m0_ios_getattr_async | ( | struct m0_reqh * | reqh, |
const struct m0_fid * | gfid, | ||
struct m0_cob_attr * | attr, | ||
uint64_t | index, | ||
void(*)(void *arg, int rc) | cb, | ||
void * | arg | ||
) |
getattr from ioservice asynchronously.
Definition at line 916 of file io_service.c.
M0_INTERNAL void m0_ios_mds_conn_fini | ( | struct m0_reqh * | reqh | ) |
Terminates and clears the ioservice to mdservice connection.
Definition at line 617 of file io_service.c.
M0_INTERNAL int m0_ios_mds_getattr | ( | struct m0_reqh * | reqh, |
const struct m0_fid * | gfid, | ||
struct m0_cob_attr * | attr | ||
) |
Gets file attributes from mdservice.
reqh | the request handler. |
gfid | the global fid of the file. |
attr | the returned attributes will be stored here. |
Definition at line 663 of file io_service.c.
M0_INTERNAL int m0_ios_mds_getattr_async | ( | struct m0_reqh * | reqh, |
const struct m0_fid * | gfid, | ||
struct m0_cob_attr * | attr, | ||
void(*)(void *arg, int rc) | cb, | ||
void * | arg | ||
) |
getattr from mdservice asynchronously.
Definition at line 940 of file io_service.c.
M0_INTERNAL void m0_ios_net_buffer_pool_size_set | ( | uint32_t | buffer_pool_size | ) |
Sets default values for buf_nr for m0_net_buffer_pool_provision() in ioservice.
Definition at line 994 of file io_service.c.
M0_INTERNAL int m0_ios_register | ( | void | ) |
Registers I/O service with motr node. Motr setup calls this function.
Definition at line 158 of file io_service.c.
M0_INTERNAL void m0_ios_unregister | ( | void | ) |
Unregisters I/O service from motr node.
Definition at line 174 of file io_service.c.
M0_INTERNAL bool m0_reqh_io_service_invariant | ( | const struct m0_reqh_io_service * | rios | ) |