This component contains the File Operation Packets (FOP) definitions for following operations
It describes the FOP formats along with brief description of the flow.
Note: As authorization is carried on server, all request FOPs contain uid and gid. For authentication, nid is included in every FOP. This is to serve very primitive authentication for now.
◆ m0_io_flags
Enumerator |
---|
M0_IO_FLAG_CROW | Create cob on write if not present
|
M0_IO_FLAG_NOHOLE | Return error if read see holes
|
M0_IO_FLAG_SYNC | Wait until the transaction is persistent.
|
Definition at line 366 of file io_fops.h.
◆ M0_XCA_DOMAIN()
◆ c_body [1/2]
attributes of this cob
Definition at line 456 of file io_fops.h.
◆ c_body [2/2]
attributes of this cob
Definition at line 281 of file io_fops.h.
◆ c_cob_idx [1/2]
Unique cob index in pool.
Definition at line 296 of file io_fops.h.
◆ c_cob_idx [2/2]
Unique cob index in pool.
Definition at line 471 of file io_fops.h.
◆ c_cob_type [1/2]
Cob type to identfiy whether it is of regular or md cob.
Definition at line 299 of file io_fops.h.
◆ c_cob_type [2/2]
Cob type to identfiy whether it is of regular or md cob.
Definition at line 474 of file io_fops.h.
◆ c_cobfid [1/2]
Fid of component object.
Definition at line 465 of file io_fops.h.
◆ c_cobfid [2/2]
Fid of component object.
Definition at line 290 of file io_fops.h.
◆ c_flags [1/2]
Miscellaneous flags.
Definition at line 302 of file io_fops.h.
◆ c_flags [2/2]
Miscellaneous flags.
Definition at line 477 of file io_fops.h.
◆ c_gobfid [1/2]
Fid of global file.
Definition at line 460 of file io_fops.h.
◆ c_gobfid [2/2]
Fid of global file.
Definition at line 285 of file io_fops.h.
◆ c_pver [1/2]
Pool version of component object.
Definition at line 468 of file io_fops.h.
◆ c_pver [2/2]
Pool version of component object.
Definition at line 293 of file io_fops.h.
◆ c_rc [1/3]
◆ c_rc [2/3]
◆ c_rc [3/3]
◆ c_rep [1/3]
Common read/write reply.
Common read/write reply structure.
Definition at line 282 of file io_fops.h.
◆ c_rep [2/3]
Common read/write reply.
Definition at line 351 of file io_fops.h.
◆ c_rep [3/3]
Common read/write reply structure.
Definition at line 363 of file io_fops.h.
◆ c_rwv [1/3]
Common definition of read/write fops.
Definition at line 432 of file io_fops.h.
◆ c_rwv [2/3]
Common definition of read/write fops.
Definition at line 281 of file io_fops.h.
◆ c_rwv [3/3]
Common definition of read/write fops.
Definition at line 446 of file io_fops.h.
◆ cc_common [1/2]
◆ cc_common [2/2]
◆ cd_common [1/2]
◆ cd_common [2/2]
◆ cg_common [1/2]
◆ cg_common [2/2]
◆ cgr_body [1/2]
attributes of this cob
Definition at line 284 of file io_fops.h.
◆ cgr_body [2/2]
attributes of this cob
Definition at line 544 of file io_fops.h.
◆ cgr_common [1/2]
common part of a cob reply
Definition at line 282 of file io_fops.h.
◆ cgr_common [2/2]
common part of a cob reply
Definition at line 542 of file io_fops.h.
◆ cgr_rc [1/2]
◆ cgr_rc [2/2]
◆ cor_common [1/2]
◆ cor_common [2/2]
◆ cor_mod_rep [1/2]
Returned values for an UPDATE operation
Definition at line 281 of file io_fops.h.
◆ cor_mod_rep [2/2]
Returned values for an UPDATE operation
Definition at line 518 of file io_fops.h.
◆ cor_rc [1/2]
◆ cor_rc [2/2]
◆ crw_cksum_size [1/2]
Checksum and tag values for the input data blocks.
Definition at line 318 of file io_fops.h.
◆ crw_cksum_size [2/2]
Checksum and tag values for the input data blocks.
Definition at line 415 of file io_fops.h.
◆ crw_desc [1/2]
◆ crw_desc [2/2]
◆ crw_di_data [1/2]
◆ crw_di_data [2/2]
◆ crw_di_data_cksum [1/2]
struct m0_buf crw_di_data_cksum |
Checksum value used for write operation for read it will be unused
Definition at line 321 of file io_fops.h.
◆ crw_di_data_cksum [2/2]
struct m0_buf crw_di_data_cksum |
Checksum value used for write operation for read it will be unused
Definition at line 418 of file io_fops.h.
◆ crw_fid [1/2]
File identifier of read/write request.
Definition at line 385 of file io_fops.h.
◆ crw_fid [2/2]
File identifier of read/write request.
Definition at line 288 of file io_fops.h.
◆ crw_flags [1/2]
Miscellaneous flags.
Definition at line 316 of file io_fops.h.
◆ crw_flags [2/2]
Miscellaneous flags.
Definition at line 413 of file io_fops.h.
◆ crw_gfid [1/2]
File identifier for global file. This is needed during degraded mode write IO when SNS repair subsystem is queried for status of SNS repair process with respect to this global fid.
Definition at line 382 of file io_fops.h.
◆ crw_gfid [2/2]
File identifier for global file. This is needed during degraded mode write IO when SNS repair subsystem is queried for status of SNS repair process with respect to this global fid.
Definition at line 285 of file io_fops.h.
◆ crw_index [1/2]
cob index in the pool verion.
Definition at line 291 of file io_fops.h.
◆ crw_index [2/2]
cob index in the pool verion.
Definition at line 388 of file io_fops.h.
◆ crw_ivec [1/2]
Index vectors representing the extent information for the IO request.
- Todo:
- Perhaps it would be easier to change client to send io_index_vec as 2 sequences (of the same length): first indices, then counts. Such sequence can be converted to m0_indexvec without allocating intermediary structure and it might simplify client code too, if it uses indexvecs.
Definition at line 314 of file io_fops.h.
◆ crw_ivec [2/2]
Index vectors representing the extent information for the IO request.
- Todo:
- Perhaps it would be easier to change client to send io_index_vec as 2 sequences (of the same length): first indices, then counts. Such sequence can be converted to m0_indexvec without allocating intermediary structure and it might simplify client code too, if it uses indexvecs.
Definition at line 411 of file io_fops.h.
◆ crw_lid [1/2]
Layout id of the file this cob belongs to.
Definition at line 297 of file io_fops.h.
◆ crw_lid [2/2]
Layout id of the file this cob belongs to.
Definition at line 394 of file io_fops.h.
◆ crw_pver [1/2]
Pool version for read/write request.
Definition at line 294 of file io_fops.h.
◆ crw_pver [2/2]
Pool version for read/write request.
Definition at line 391 of file io_fops.h.
◆ cs_common [1/2]
◆ cs_common [2/2]
◆ csr_common [1/2]
common part of a cob reply
Definition at line 282 of file io_fops.h.
◆ csr_common [2/2]
common part of a cob reply
Definition at line 560 of file io_fops.h.
◆ csr_rc [1/2]
◆ csr_rc [2/2]
◆ ct_common [1/2]
◆ ct_common [2/2]
◆ ct_io_ivec [1/2]
◆ ct_io_ivec [2/2]
◆ ct_size [1/2]
◆ ct_size [2/2]
◆ id_descs [1/2]
◆ id_descs [2/2]
◆ id_nr [1/2]
◆ id_nr [2/2]
◆ if_bulk_inited
◆ if_fop
Inline fop for a generic IO fop.
Definition at line 174 of file io_fops.h.
◆ if_magic
Magic constant for IO fop.
Definition at line 179 of file io_fops.h.
◆ if_nbd [1/2]
◆ if_nbd [2/2]
◆ if_rbulk
Rpc bulk structure containing zero vector for io fop.
Definition at line 177 of file io_fops.h.
◆ if_st [1/2]
◆ if_st [2/2]
◆ M0_XCA_DOMAIN
◆ rwr_cksum_nob_read [1/2]
uint32_t rwr_cksum_nob_read |
Total number of checksum bytes read by FOP till now for debug
Definition at line 296 of file io_fops.h.
◆ rwr_cksum_nob_read [2/2]
uint32_t rwr_cksum_nob_read |
Total number of checksum bytes read by FOP till now for debug
Definition at line 336 of file io_fops.h.
◆ rwr_count [1/2]
Number of bytes read or written.
Definition at line 284 of file io_fops.h.
◆ rwr_count [2/2]
Number of bytes read or written.
Definition at line 324 of file io_fops.h.
◆ rwr_di_data_cksum [1/2]
struct m0_buf rwr_di_data_cksum |
Checksum data returned to client during Read operation
Definition at line 302 of file io_fops.h.
◆ rwr_di_data_cksum [2/2]
struct m0_buf rwr_di_data_cksum |
Checksum data returned to client during Read operation
Definition at line 342 of file io_fops.h.
◆ rwr_mod_rep [1/2]
Returned values for an UPDATE operation
Definition at line 299 of file io_fops.h.
◆ rwr_mod_rep [2/2]
Returned values for an UPDATE operation
Definition at line 339 of file io_fops.h.
◆ rwr_rc [1/2]
Status code of operation.
Definition at line 281 of file io_fops.h.
◆ rwr_rc [2/2]
Status code of operation.
Definition at line 321 of file io_fops.h.
◆ rwr_repair_done [1/2]
A field indicating whether repair has finished or not for given global fid. rwr_repair_done == 1 indicates SNS repair has not started at all. rwr_repair_done == 2 indicates file is still be to be repaired. rwr_repair_done == 3 indicates file has been repaired.
Definition at line 293 of file io_fops.h.
◆ rwr_repair_done [2/2]
A field indicating whether repair has finished or not for given global fid. rwr_repair_done == 1 indicates SNS repair has not started at all. rwr_repair_done == 2 indicates file is still be to be repaired. rwr_repair_done == 3 indicates file has been repaired.
Definition at line 333 of file io_fops.h.