Uploaded image for project: 'Lustre Documentation'
  1. Lustre Documentation
  2. LUDOC-552

Lustre Wiki: Migrate Lustre Protocol Documentation to Wiki

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • 3
    • 9223372036854775807

    Description

      This improvement tracks creation of a Lustre Wiki page that captures opcodes in Lustre and provides some basic descriptions for each.  This derives from an email chain where Michael Aguilar at Sandia and Andreas Dilger were discussing the now long-abandoned Lustre Protocol Documentation project, which is still present here:
      https://git.whamcloud.com/?p=doc/protocol.git;a=summary

      Andreas mentions that:

      "Probably the easiest source is ll_rpc_opcode_table[] that maps all of the RPC opcode numbers to string names."

      Mike took a stab at a table, but this could be improved further from an aesthetics perspective:

       

      Transaction Opcode
      OST_REPLY 0
      OST_GETATTR 1
      OST_SETATTR 2
         
         
         
         

       

       

       

       

      rpc_opcode_table[LUSTRE_MAX_OPCODES] = {

      { OST_REPLY, "ost_reply" },

      { OST_GETATTR, "ost_getattr" },

      { OST_SETATTR, "ost_setattr" },

      { OST_READ, "ost_read" },

      { OST_WRITE, "ost_write" },

      { OST_CREATE , "ost_create" },

      { OST_DESTROY, "ost_destroy" },

      { OST_GET_INFO, "ost_get_info" },

      { OST_CONNECT, "ost_connect" },

      { OST_DISCONNECT, "ost_disconnect" },

      { OST_PUNCH, "ost_punch" },

      { OST_OPEN, "ost_open" },

      { OST_CLOSE, "ost_close" },

      { OST_STATFS, "ost_statfs" },

      { 14, NULL }, /* formerly OST_SAN_READ */

      { 15, NULL }, /* formerly OST_SAN_WRITE */

      { OST_SYNC, "ost_sync" },

      { OST_SET_INFO, "ost_set_info" },

      { OST_QUOTACHECK, "ost_quotacheck" },

      { OST_QUOTACTL, "ost_quotactl" },

      { OST_QUOTA_ADJUST_QUNIT, "ost_quota_adjust_qunit" },

      { OST_LADVISE, "ost_ladvise" },

      { MDS_GETATTR, "mds_getattr" },

      { MDS_GETATTR_NAME, "mds_getattr_lock" },

      { MDS_CLOSE, "mds_close" },

      { MDS_REINT, "mds_reint" },

      { MDS_READPAGE, "mds_readpage" },

      { MDS_CONNECT, "mds_connect" },

      { MDS_DISCONNECT, "mds_disconnect" },

      { MDS_GET_ROOT, "mds_get_root" },

      { MDS_STATFS, "mds_statfs" },

      { MDS_PIN, "mds_pin" },

      { MDS_UNPIN, "mds_unpin" },

      { MDS_SYNC, "mds_sync" },

      { MDS_DONE_WRITING, "mds_done_writing" },

      { MDS_SET_INFO, "mds_set_info" },

      { MDS_QUOTACHECK, "mds_quotacheck" },

      { MDS_QUOTACTL, "mds_quotactl" },

      { MDS_GETXATTR, "mds_getxattr" },

      { MDS_SETXATTR, "mds_setxattr" },

      { MDS_WRITEPAGE, "mds_writepage" },

      { MDS_IS_SUBDIR, "mds_is_subdir" },

      { MDS_GET_INFO, "mds_get_info" },

      { MDS_HSM_STATE_GET, "mds_hsm_state_get" },

      { MDS_HSM_STATE_SET, "mds_hsm_state_set" },

      { MDS_HSM_ACTION, "mds_hsm_action" },

      { MDS_HSM_PROGRESS, "mds_hsm_progress" },

      { MDS_HSM_REQUEST, "mds_hsm_request" },

      { MDS_HSM_CT_REGISTER, "mds_hsm_ct_register" },

      { MDS_HSM_CT_UNREGISTER, "mds_hsm_ct_unregister" },

      { MDS_SWAP_LAYOUTS, "mds_swap_layouts" },

      { MDS_RMFID, "mds_rmfid" },

      { LDLM_ENQUEUE, "ldlm_enqueue" },

      { LDLM_CONVERT, "ldlm_convert" },

      { LDLM_CANCEL, "ldlm_cancel" },

      { LDLM_BL_CALLBACK, "ldlm_bl_callback" },

      { LDLM_CP_CALLBACK, "ldlm_cp_callback" },

      { LDLM_GL_CALLBACK, "ldlm_gl_callback" },

      { LDLM_SET_INFO, "ldlm_set_info" },

      { MGS_CONNECT, "mgs_connect" },

      { MGS_DISCONNECT, "mgs_disconnect" },

      { MGS_EXCEPTION, "mgs_exception" },

      { MGS_TARGET_REG, "mgs_target_reg" },

      { MGS_TARGET_DEL, "mgs_target_del" },

      { MGS_SET_INFO, "mgs_set_info" },

      { MGS_CONFIG_READ, "mgs_config_read" },

      { OBD_PING, "obd_ping" },

      { 401, /* was OBD_LOG_CANCEL */ "llog_cancel" },

      { 402, /* was OBD_QC_CALLBACK */ "obd_quota_callback" },

      { OBD_IDX_READ, "dt_index_read" },

      { LLOG_ORIGIN_HANDLE_CREATE, "llog_origin_handle_open" },

      { LLOG_ORIGIN_HANDLE_NEXT_BLOCK, "llog_origin_handle_next_block" },

      { LLOG_ORIGIN_HANDLE_READ_HEADER,"llog_origin_handle_read_header" },

      { 504, /*LLOG_ORIGIN_HANDLE_WRITE_REC*/"llog_origin_handle_write_rec" },

      { 505, /* was LLOG_ORIGIN_HANDLE_CLOSE */ "llog_origin_handle_close" },

      { 506, /* was LLOG_ORIGIN_CONNECT */ "llog_origin_connect" },

      { 507, /* was LLOG_CATINFO */ "llog_catinfo" },

      { LLOG_ORIGIN_HANDLE_PREV_BLOCK, "llog_origin_handle_prev_block" },

      { LLOG_ORIGIN_HANDLE_DESTROY, "llog_origin_handle_destroy" },

      { QUOTA_DQACQ, "quota_acquire" },

      { QUOTA_DQREL, "quota_release" },

      { SEQ_QUERY, "seq_query" },

      { SEC_CTX_INIT, "sec_ctx_init" },

      { SEC_CTX_INIT_CONT,"sec_ctx_init_cont" },

      { SEC_CTX_FINI, "sec_ctx_fini" },

      { FLD_QUERY, "fld_query" },

      { FLD_READ, "fld_read" },

      { OUT_UPDATE, "out_update" },

      { LFSCK_NOTIFY, "lfsck_notify" },

      { LFSCK_QUERY, "lfsck_query" },

       

       

       

      Attachments

        Activity

          People

            elliswilson Ellis Wilson
            elliswilson Ellis Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: