From: nasf Date: Thu, 14 Jul 2011 09:51:30 +0000 (+0800) Subject: LU-389 update packet-lustre.c for master X-Git-Tag: 2.1.51~19 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=60c6d854fbcadce00edf1543317ab229dd7ce3a9 LU-389 update packet-lustre.c for master Drop unused mds_body/mds_rec_xxx/mds_status_req. Add missing mdt_body/mdt_rec_xxx. Change-Id: Ic530541f58d12c721fa6efd0bc9a1096a15d7e33 Signed-off-by: nasf Reviewed-on: http://review.whamcloud.com/995 Reviewed-by: Andreas Dilger Tested-by: Hudson Tested-by: Maloo Reviewed-by: Bobi Jam Tested-by: Andreas Dilger --- diff --git a/lustre/contrib/packet-lustre.c b/lustre/contrib/packet-lustre.c index 712082b..c75cace 100644 --- a/lustre/contrib/packet-lustre.c +++ b/lustre/contrib/packet-lustre.c @@ -1,4 +1,4 @@ -/* packet-lustre.c +/* packet-lustre.c * Lustre 1.6 dissection (http://www.lustre.org/) * Author: Laurent George * based on packet-agentx.c and packet-afs.c @@ -38,7 +38,7 @@ /* --------------------------------------------------------------------------------------- */ /* def and macro to know where we are the the lustre payload */ -#define LUSTRE_MAGIC_OFFSET 8 +#define LUSTRE_MAGIC_OFFSET 8 #define LUSTRE_MSG_MAGIC_V1 0x0BD00BD0 #define LUSTRE_MSG_MAGIC_V2 0x0BD00BD3 @@ -49,7 +49,7 @@ * v1 : LUSTRE_BUFLEN_OFF = offset buflen[0] - 4 bytes. * v2 : LUSTRE_BUFLEN_OFF = offset buflen[0] */ -#define LUSTRE_BUFLEN_OFF ((tvb_get_letohl(tvb, LUSTRE_MAGIC_OFFSET)== LUSTRE_MSG_MAGIC_V2) ? 32 : 60) +#define LUSTRE_BUFLEN_OFF ((tvb_get_letohl(tvb, LUSTRE_MAGIC_OFFSET)== LUSTRE_MSG_MAGIC_V2) ? 32 : 60) #define LUSTRE_REQ_REC_OFF 1 /* normal request record offset */ #define LUSTRE_REPLY_REC_OFF 1 /* normal reply record offset */ @@ -147,7 +147,7 @@ typedef enum { -#define MDS_FIRST_OPC MDS_GETATTR +#define MDS_FIRST_OPC MDS_GETATTR #define LDLM_FIRST_OPC LDLM_ENQUEUE typedef enum { @@ -157,8 +157,9 @@ typedef enum { REINT_UNLINK = 4, REINT_RENAME = 5, REINT_OPEN = 6, - // REINT_CLOSE = 7, - // REINT_WRITE = 8, + REINT_SETXATTR = 7, + // REINT_CLOSE = 8, + // REINT_WRITE = 9, REINT_MAX } mds_reint_t; @@ -173,33 +174,33 @@ typedef enum { } ldlm_cmd_t; #define LDLM_FIRST_OPC LDLM_ENQUEUE -#define LDLM_FL_LOCK_CHANGED 0x000001 -#define LDLM_FL_BLOCK_GRANTED 0x000002 -#define LDLM_FL_BLOCK_CONV 0x000004 -#define LDLM_FL_BLOCK_WAIT 0x000008 -#define LDLM_FL_CBPENDING 0x000010 -#define LDLM_FL_AST_SENT 0x000020 -#define LDLM_FL_WAIT_NOREPROC 0x000040 -#define LDLM_FL_CANCEL 0x000080 -#define LDLM_FL_REPLAY 0x000100 -#define LDLM_FL_INTENT_ONLY 0x000200 -#define LDLM_FL_LOCAL_ONLY 0x000400 -#define LDLM_FL_FAILED 0x000800 -#define LDLM_FL_HAS_INTENT 0x001000 -#define LDLM_FL_CANCELING 0x002000 -#define LDLM_FL_LOCAL 0x004000 -#define LDLM_FL_WARN 0x008000 -#define LDLM_FL_DISCARD_DATA 0x010000 -#define LDLM_FL_NO_TIMEOUT 0x020000 -#define LDLM_FL_BLOCK_NOWAIT 0x040000 -#define LDLM_FL_TEST_LOCK 0x080000 -#define LDLM_FL_LVB_READY 0x100000 -#define LDLM_FL_KMS_IGNORE 0x200000 -#define LDLM_FL_NO_LRU 0x400000 -#define LDLM_FL_CANCEL_ON_BLOCK 0x800000 -#define LDLM_FL_CP_REQD 0x1000000 -#define LDLM_FL_CLEANED 0x2000000 -#define LDLM_FL_ATOMIC_CB 0x4000000 +#define LDLM_FL_LOCK_CHANGED 0x000001 +#define LDLM_FL_BLOCK_GRANTED 0x000002 +#define LDLM_FL_BLOCK_CONV 0x000004 +#define LDLM_FL_BLOCK_WAIT 0x000008 +#define LDLM_FL_CBPENDING 0x000010 +#define LDLM_FL_AST_SENT 0x000020 +#define LDLM_FL_WAIT_NOREPROC 0x000040 +#define LDLM_FL_CANCEL 0x000080 +#define LDLM_FL_REPLAY 0x000100 +#define LDLM_FL_INTENT_ONLY 0x000200 +#define LDLM_FL_LOCAL_ONLY 0x000400 +#define LDLM_FL_FAILED 0x000800 +#define LDLM_FL_HAS_INTENT 0x001000 +#define LDLM_FL_CANCELING 0x002000 +#define LDLM_FL_LOCAL 0x004000 +#define LDLM_FL_WARN 0x008000 +#define LDLM_FL_DISCARD_DATA 0x010000 +#define LDLM_FL_NO_TIMEOUT 0x020000 +#define LDLM_FL_BLOCK_NOWAIT 0x040000 +#define LDLM_FL_TEST_LOCK 0x080000 +#define LDLM_FL_LVB_READY 0x100000 +#define LDLM_FL_KMS_IGNORE 0x200000 +#define LDLM_FL_NO_LRU 0x400000 +#define LDLM_FL_CANCEL_ON_BLOCK 0x800000 +#define LDLM_FL_CP_REQD 0x1000000 +#define LDLM_FL_CLEANED 0x2000000 +#define LDLM_FL_ATOMIC_CB 0x4000000 #define LDLM_FL_BL_AST 0x10000000 #define LDLM_FL_BL_DONE 0x20000000 #define LDLM_FL_DENY_ON_CONTENTION 0x40000000 @@ -303,17 +304,17 @@ static gint ett_lustre_obd_ioobj = -1; static gint ett_lustre_niobuf_remote = -1; static gint ett_lustre_ost_lvb = -1; static gint ett_lustre_ll_fid = -1; -static gint ett_lustre_mds_status_req = -1; -static gint ett_lustre_mds_body = -1; +static gint ett_lustre_mdt_body = -1; +static gint ett_lustre_mdt_rec_setattr = -1; +static gint ett_lustre_mdt_rec_create = -1; +static gint ett_lustre_mdt_rec_link = -1; +static gint ett_lustre_mdt_rec_unlink = -1; +static gint ett_lustre_mdt_rec_rename = -1; +static gint ett_lustre_mdt_rec_setxattr = -1; static gint ett_lustre_obd_quotactl = -1; static gint ett_lustre_obd_dqinfo = -1; static gint ett_lustre_obd_dqblk = -1; static gint ett_lustre_quota_adjust_qunit = -1; -static gint ett_lustre_mds_rec_setattr = -1; -static gint ett_lustre_mds_rec_create = -1; -static gint ett_lustre_mds_rec_link = -1; -static gint ett_lustre_mds_rec_unlink = -1; -static gint ett_lustre_mds_rec_rename = -1; static gint ett_lustre_lov_desc = -1; static gint ett_lustre_obd_uuid = -1; static gint ett_lustre_ldlm_res_id = -1; @@ -355,18 +356,14 @@ static gint ett_lustre_ldlm_lock_flags = -1 ; /* -----------------------------------------------*/ /* Header field declarations */ -static int hf_lustre_ptlrpc_body_pb = -1 ; -static int hf_lustre_mds_body = -1 ; +static int hf_lustre_ptlrpc_body_pb = -1 ; static int hf_lustre_ost_body = -1 ; -static int hf_lustre_obd_statfs = -1 ; +static int hf_lustre_obd_statfs = -1 ; static int hf_lustre_obd_quotactl = -1 ; static int hf_lustre_quota_adjust_qunit = -1 ; static int hf_lustre_extra_padding = -1 ; static int hf_lustre_ldlm_reply = -1 ; static int hf_lustre_ldlm_request = -1 ; -static int hf_lustre_mds_rec_create = -1 ; -static int hf_lustre_mds_rec_link = -1 ; -static int hf_lustre_mds_rec_unlink = -1 ; static int hf_lustre_obd_uuid = -1 ; static int hf_lustre_obd_connect_data = -1 ; static int hf_lustre_ldlm_intent = -1; @@ -375,29 +372,29 @@ static int hf_lustre_niobuf_remote = -1 ; static int hf_lustre_ost_key = -1 ; static int hf_lustre_nio= -1 ; static int hf_lustre_ost_val= -1; -static int hf_lustre_llogd_body = -1; -static int hf_lustre_llogd_log_hdr= -1; +static int hf_lustre_llogd_body = -1; +static int hf_lustre_llogd_log_hdr= -1; static int hf_lustre_llog_logid_rec =-1 ; -static int hf_lustre_llogd_chunk= -1; -static int hf_lustre_llogd_keyword= -1; -static int hf_lustre_llogd_client= -1; -static int hf_lustre_llogd_name= -1; - -static int hf_lustre_mds_xattr_name = -1; -static int hf_lustre_lov_mds_md_v1= -1; -static int hf_lustre_llog_cookie= -1; -static int hf_lustre_mds_md_data= -1; -static int hf_lustre_mds_reint_opcode= -1; +static int hf_lustre_llogd_chunk= -1; +static int hf_lustre_llogd_keyword= -1; +static int hf_lustre_llogd_client= -1; +static int hf_lustre_llogd_name= -1; + +static int hf_lustre_mds_xattr_name = -1; +static int hf_lustre_lov_mds_md_v1= -1; +static int hf_lustre_llog_cookie= -1; +static int hf_lustre_mds_md_data= -1; +static int hf_lustre_mds_reint_opcode= -1; static int hf_lustre_mds_xattr_eadata = -1; -static int hf_lustre_reint_name= -1; -static int hf_lustre_reint_old_name= -1; -static int hf_lustre_reint_new_name= -1; +static int hf_lustre_reint_name= -1; +static int hf_lustre_reint_old_name= -1; +static int hf_lustre_reint_new_name= -1; -static int hf_lustre_mgs_target_info = -1 ; -static int hf_lustre_mgs_send_param = -1; +static int hf_lustre_mgs_target_info = -1 ; +static int hf_lustre_mgs_send_param = -1; -static int hf_lustre_ost_lvb = -1 ; +static int hf_lustre_ost_lvb = -1 ; static int hf_lustre_ldlm_fl_lock_changed = -1; static int hf_lustre_ldlm_fl_block_granted = -1; @@ -431,35 +428,197 @@ static int hf_lustre_ldlm_fl_bl_done = -1; static int hf_lustre_ldlm_fl_deny_on_contention = -1; static int hf_lustre_ldlm_ast_discard_data = -1; -static int hf_lustre_mds_body_ctime = -1; -static int hf_lustre_mds_body_fid1 = -1; -static int hf_lustre_mds_body_nlink = -1; -static int hf_lustre_mds_body_flags = -1; -static int hf_lustre_mds_body_fsgid = -1; -static int hf_lustre_mds_body_mtime = -1; -static int hf_lustre_mds_body_uid = -1; -static int hf_lustre_mds_body_mode = -1; -static int hf_lustre_mds_body_max_cookiesize = -1; -static int hf_lustre_mds_body_io_epoch = -1; -static int hf_lustre_mds_body_ino = -1; -static int hf_lustre_mds_body_fid2 = -1; -static int hf_lustre_mds_body_padding_4 = -1; -static int hf_lustre_mds_body_aclsize = -1; -static int hf_lustre_mds_body_valid = -1; -static int hf_lustre_mds_body_generation = -1; -static int hf_lustre_mds_body_atime = -1; -static int hf_lustre_mds_body_handle = -1; -static int hf_lustre_mds_body_max_mdsize = -1; -static int hf_lustre_mds_body_rdev = -1; -static int hf_lustre_mds_body_blocks = -1; -static int hf_lustre_mds_body_fsuid = -1; -static int hf_lustre_mds_body_gid = -1; -static int hf_lustre_lustre_handle_cookie = -1; -static int hf_lustre_mds_body_suppgid = -1; -static int hf_lustre_mds_body_size = -1; -static int hf_lustre_mds_body_eadatasize = -1; -static int hf_lustre_mds_body_capability = -1; +static int hf_lustre_mdt_body = -1 ; +static int hf_lustre_mdt_body_fid1 = -1; +static int hf_lustre_mdt_body_fid2 = -1; +static int hf_lustre_mdt_body_handle = -1; +static int hf_lustre_mdt_body_valid = -1; +static int hf_lustre_mdt_body_size = -1; +static int hf_lustre_mdt_body_mtime = -1; +static int hf_lustre_mdt_body_atime = -1; +static int hf_lustre_mdt_body_ctime = -1; +static int hf_lustre_mdt_body_blocks = -1; +static int hf_lustre_mdt_body_ioepoch = -1; +static int hf_lustre_mdt_body_ino = -1; +static int hf_lustre_mdt_body_fsuid = -1; +static int hf_lustre_mdt_body_fsgid = -1; +static int hf_lustre_mdt_body_capability = -1; +static int hf_lustre_mdt_body_mode = -1; +static int hf_lustre_mdt_body_uid = -1; +static int hf_lustre_mdt_body_gid = -1; +static int hf_lustre_mdt_body_flags = -1; +static int hf_lustre_mdt_body_rdev = -1; +static int hf_lustre_mdt_body_nlink = -1; +static int hf_lustre_mdt_body_generation = -1; +static int hf_lustre_mdt_body_suppgid = -1; +static int hf_lustre_mdt_body_eadatasize = -1; +static int hf_lustre_mdt_body_aclsize = -1; +static int hf_lustre_mdt_body_max_mdsize = -1; +static int hf_lustre_mdt_body_max_cookiesize = -1; +static int hf_lustre_mdt_body_uid_h = -1; +static int hf_lustre_mdt_body_gid_h = -1; +static int hf_lustre_mdt_body_padding_5 = -1; +static int hf_lustre_mdt_body_padding_6 = -1; +static int hf_lustre_mdt_body_padding_7 = -1; +static int hf_lustre_mdt_body_padding_8 = -1; +static int hf_lustre_mdt_body_padding_9 = -1; +static int hf_lustre_mdt_body_padding_10 = -1; + +static int hf_lustre_mdt_rec_setattr = -1 ; +static int hf_lustre_mdt_rec_setattr_sa_opcode = -1; +static int hf_lustre_mdt_rec_setattr_sa_cap = -1; +static int hf_lustre_mdt_rec_setattr_sa_fsuid = -1; +static int hf_lustre_mdt_rec_setattr_sa_fsuid_h = -1; +static int hf_lustre_mdt_rec_setattr_sa_fsgid = -1; +static int hf_lustre_mdt_rec_setattr_sa_fsgid_h = -1; +static int hf_lustre_mdt_rec_setattr_sa_suppgid = -1; +static int hf_lustre_mdt_rec_setattr_sa_suppgid_h = -1; +static int hf_lustre_mdt_rec_setattr_sa_padding_1 = -1; +static int hf_lustre_mdt_rec_setattr_sa_padding_1_h = -1; +static int hf_lustre_mdt_rec_setattr_sa_fid = -1; +static int hf_lustre_mdt_rec_setattr_sa_valid = -1; +static int hf_lustre_mdt_rec_setattr_sa_uid = -1; +static int hf_lustre_mdt_rec_setattr_sa_gid = -1; +static int hf_lustre_mdt_rec_setattr_sa_size = -1; +static int hf_lustre_mdt_rec_setattr_sa_blocks = -1; +static int hf_lustre_mdt_rec_setattr_sa_mtime = -1; +static int hf_lustre_mdt_rec_setattr_sa_atime = -1; +static int hf_lustre_mdt_rec_setattr_sa_ctime = -1; +static int hf_lustre_mdt_rec_setattr_sa_attr_flags = -1; +static int hf_lustre_mdt_rec_setattr_sa_mode = -1; +static int hf_lustre_mdt_rec_setattr_sa_padding_2 = -1; +static int hf_lustre_mdt_rec_setattr_sa_padding_3 = -1; +static int hf_lustre_mdt_rec_setattr_sa_padding_4 = -1; +static int hf_lustre_mdt_rec_setattr_sa_padding_5 = -1; + +static int hf_lustre_mdt_rec_create = -1 ; +static int hf_lustre_mdt_rec_create_cr_opcode = -1; +static int hf_lustre_mdt_rec_create_cr_cap = -1; +static int hf_lustre_mdt_rec_create_cr_fsuid = -1; +static int hf_lustre_mdt_rec_create_cr_fsuid_h = -1; +static int hf_lustre_mdt_rec_create_cr_fsgid = -1; +static int hf_lustre_mdt_rec_create_cr_fsgid_h = -1; +static int hf_lustre_mdt_rec_create_cr_suppgid1 = -1; +static int hf_lustre_mdt_rec_create_cr_suppgid1_h = -1; +static int hf_lustre_mdt_rec_create_cr_suppgid2 = -1; +static int hf_lustre_mdt_rec_create_cr_suppgid2_h = -1; +static int hf_lustre_mdt_rec_create_cr_fid1 = -1; +static int hf_lustre_mdt_rec_create_cr_fid2 = -1; +static int hf_lustre_mdt_rec_create_cr_old_handle = -1; +static int hf_lustre_mdt_rec_create_cr_time = -1; +static int hf_lustre_mdt_rec_create_cr_rdev = -1; +static int hf_lustre_mdt_rec_create_cr_cr_ioepoch = -1; +static int hf_lustre_mdt_rec_create_cr_padding_1 = -1; +static int hf_lustre_mdt_rec_create_cr_mode = -1; +static int hf_lustre_mdt_rec_create_cr_bias = -1; +static int hf_lustre_mdt_rec_create_cr_flags_l = -1; +static int hf_lustre_mdt_rec_create_cr_flags_h = -1; +static int hf_lustre_mdt_rec_create_cr_padding_3 = -1; +static int hf_lustre_mdt_rec_create_cr_padding_4 = -1; + +static int hf_lustre_mdt_rec_link = -1 ; +static int hf_lustre_mdt_rec_link_lk_opcode = -1; +static int hf_lustre_mdt_rec_link_lk_cap = -1; +static int hf_lustre_mdt_rec_link_lk_fsuid = -1; +static int hf_lustre_mdt_rec_link_lk_fsuid_h = -1; +static int hf_lustre_mdt_rec_link_lk_fsgid = -1; +static int hf_lustre_mdt_rec_link_lk_fsgid_h = -1; +static int hf_lustre_mdt_rec_link_lk_suppgid1 = -1; +static int hf_lustre_mdt_rec_link_lk_suppgid1_h = -1; +static int hf_lustre_mdt_rec_link_lk_suppgid2 = -1; +static int hf_lustre_mdt_rec_link_lk_suppgid2_h = -1; +static int hf_lustre_mdt_rec_link_lk_fid1 = -1; +static int hf_lustre_mdt_rec_link_lk_fid2 = -1; +static int hf_lustre_mdt_rec_link_lk_time = -1; +static int hf_lustre_mdt_rec_link_lk_padding_1 = -1; +static int hf_lustre_mdt_rec_link_lk_padding_2 = -1; +static int hf_lustre_mdt_rec_link_lk_padding_3 = -1; +static int hf_lustre_mdt_rec_link_lk_padding_4 = -1; +static int hf_lustre_mdt_rec_link_lk_bias = -1; +static int hf_lustre_mdt_rec_link_lk_padding_5 = -1; +static int hf_lustre_mdt_rec_link_lk_padding_6 = -1; +static int hf_lustre_mdt_rec_link_lk_padding_7 = -1; +static int hf_lustre_mdt_rec_link_lk_padding_8 = -1; +static int hf_lustre_mdt_rec_link_lk_padding_9 = -1; + +static int hf_lustre_mdt_rec_unlink = -1 ; +static int hf_lustre_mdt_rec_unlink_ul_opcode = -1; +static int hf_lustre_mdt_rec_unlink_ul_cap = -1; +static int hf_lustre_mdt_rec_unlink_ul_fsuid = -1; +static int hf_lustre_mdt_rec_unlink_ul_fsuid_h = -1; +static int hf_lustre_mdt_rec_unlink_ul_fsgid = -1; +static int hf_lustre_mdt_rec_unlink_ul_fsgid_h = -1; +static int hf_lustre_mdt_rec_unlink_ul_suppgid1 = -1; +static int hf_lustre_mdt_rec_unlink_ul_suppgid1_h = -1; +static int hf_lustre_mdt_rec_unlink_ul_suppgid2 = -1; +static int hf_lustre_mdt_rec_unlink_ul_suppgid2_h = -1; +static int hf_lustre_mdt_rec_unlink_ul_fid1 = -1; +static int hf_lustre_mdt_rec_unlink_ul_fid2 = -1; +static int hf_lustre_mdt_rec_unlink_ul_time = -1; +static int hf_lustre_mdt_rec_unlink_ul_padding_2 = -1; +static int hf_lustre_mdt_rec_unlink_ul_padding_3 = -1; +static int hf_lustre_mdt_rec_unlink_ul_padding_4 = -1; +static int hf_lustre_mdt_rec_unlink_ul_padding_5 = -1; +static int hf_lustre_mdt_rec_unlink_ul_bias = -1; +static int hf_lustre_mdt_rec_unlink_ul_mode = -1; +static int hf_lustre_mdt_rec_unlink_ul_padding_6 = -1; +static int hf_lustre_mdt_rec_unlink_ul_padding_7 = -1; +static int hf_lustre_mdt_rec_unlink_ul_padding_8 = -1; +static int hf_lustre_mdt_rec_unlink_ul_padding_9 = -1; + +static int hf_lustre_mdt_rec_rename = -1 ; +static int hf_lustre_mdt_rec_rename_rn_opcode = -1; +static int hf_lustre_mdt_rec_rename_rn_cap = -1; +static int hf_lustre_mdt_rec_rename_rn_fsuid = -1; +static int hf_lustre_mdt_rec_rename_rn_fsuid_h = -1; +static int hf_lustre_mdt_rec_rename_rn_fsgid = -1; +static int hf_lustre_mdt_rec_rename_rn_fsgid_h = -1; +static int hf_lustre_mdt_rec_rename_rn_suppgid1 = -1; +static int hf_lustre_mdt_rec_rename_rn_suppgid1_h = -1; +static int hf_lustre_mdt_rec_rename_rn_suppgid2 = -1; +static int hf_lustre_mdt_rec_rename_rn_suppgid2_h = -1; +static int hf_lustre_mdt_rec_rename_rn_fid1 = -1; +static int hf_lustre_mdt_rec_rename_rn_fid2 = -1; +static int hf_lustre_mdt_rec_rename_rn_time = -1; +static int hf_lustre_mdt_rec_rename_rn_padding_1 = -1; +static int hf_lustre_mdt_rec_rename_rn_padding_2 = -1; +static int hf_lustre_mdt_rec_rename_rn_padding_3 = -1; +static int hf_lustre_mdt_rec_rename_rn_padding_4 = -1; +static int hf_lustre_mdt_rec_rename_rn_bias = -1; +static int hf_lustre_mdt_rec_rename_rn_mode = -1; +static int hf_lustre_mdt_rec_rename_rn_padding_5 = -1; +static int hf_lustre_mdt_rec_rename_rn_padding_6 = -1; +static int hf_lustre_mdt_rec_rename_rn_padding_7 = -1; +static int hf_lustre_mdt_rec_rename_rn_padding_8 = -1; + +static int hf_lustre_mdt_rec_setxattr = -1 ; +static int hf_lustre_mdt_rec_setxattr_sx_opcode = -1; +static int hf_lustre_mdt_rec_setxattr_sx_cap = -1; +static int hf_lustre_mdt_rec_setxattr_sx_fsuid = -1; +static int hf_lustre_mdt_rec_setxattr_sx_fsuid_h = -1; +static int hf_lustre_mdt_rec_setxattr_sx_fsgid = -1; +static int hf_lustre_mdt_rec_setxattr_sx_fsgid_h = -1; +static int hf_lustre_mdt_rec_setxattr_sx_suppgid1 = -1; +static int hf_lustre_mdt_rec_setxattr_sx_suppgid1_h = -1; +static int hf_lustre_mdt_rec_setxattr_sx_suppgid2 = -1; +static int hf_lustre_mdt_rec_setxattr_sx_suppgid2_h = -1; +static int hf_lustre_mdt_rec_setxattr_sx_fid = -1; +static int hf_lustre_mdt_rec_setxattr_sx_padding_1 = -1; +static int hf_lustre_mdt_rec_setxattr_sx_padding_2 = -1; +static int hf_lustre_mdt_rec_setxattr_sx_padding_3 = -1; +static int hf_lustre_mdt_rec_setxattr_sx_valid = -1; +static int hf_lustre_mdt_rec_setxattr_sx_time = -1; +static int hf_lustre_mdt_rec_setxattr_sx_padding_5 = -1; +static int hf_lustre_mdt_rec_setxattr_sx_padding_6 = -1; +static int hf_lustre_mdt_rec_setxattr_sx_padding_7 = -1; +static int hf_lustre_mdt_rec_setxattr_sx_size = -1; +static int hf_lustre_mdt_rec_setxattr_sx_flags = -1; +static int hf_lustre_mdt_rec_setxattr_sx_padding_8 = -1; +static int hf_lustre_mdt_rec_setxattr_sx_padding_9 = -1; +static int hf_lustre_mdt_rec_setxattr_sx_padding_10 = -1; +static int hf_lustre_mdt_rec_setxattr_sx_padding_11 = -1; +static int hf_lustre_lustre_handle_cookie = -1; static int hf_lustre_ptlrpc_body_pb_last_committed = -1; static int hf_lustre_ptlrpc_body_pb_version = -1; static int hf_lustre_lustre_msg_v1_lm_bufcount = -1; @@ -521,7 +680,6 @@ static int hf_lustre_lov_ost_data_v1_l_ost_gen = -1; static int hf_lustre_obd_statfs_os_bfree = -1; static int hf_lustre_obd_connect_data_ocd_version = -1; static int hf_lustre_lov_mds_md_v1_lmm_objects = -1; -static int hf_lustre_mds_status_req_flags = -1; static int hf_lustre_obd_statfs_os_namelen = -1; static int hf_lustre_obd_statfs_os_blocks = -1; static int hf_lustre_lustre_msg_v2_lm_secflvr = -1; @@ -554,7 +712,6 @@ static int hf_lustre_lov_ost_data_v1_l_ost_idx = -1; static int hf_lustre_obd_connect_data_padding2 = -1; static int hf_lustre_obd_ioobj_ioo_seq = -1; static int hf_lustre_niobuf_remote_offset=-1; -static int hf_lustre_mds_status_req_repbuf = -1; static int hf_lustre_obd_statfs_os_spare2 = -1; static int hf_lustre_lustre_msg_v2_lm_bufcount = -1; static int hf_lustre_ptlrpc_body_pb_handle = -1; @@ -564,57 +721,37 @@ static int hf_lustre_llog_unlink_rec_lur_tail = -1; static int hf_lustre_llog_size_change_rec_lsc_io_epoch = -1; static int hf_lustre_mgs_target_info_mti_flags = -1; static int hf_lustre_ldlm_reply_lock_policy_res1 = -1; -static int hf_lustre_mds_rec_link_lk_fsuid = -1; static int hf_lustre_llogd_body_lgd_len = -1; static int hf_lustre_qunit_data_old_qd_id = -1; static int hf_lustre_llog_logid_rec_padding1 = -1; static int hf_lustre_quota_adjust_qunit_padding1 = -1; static int hf_lustre_llog_size_change_rec_lsc_fid = -1; static int hf_lustre_llog_rec_hdr_padding = -1; -static int hf_lustre_mds_rec_create_cr_time = -1; -static int hf_lustre_mds_rec_create_cr_padding_1 = -1; static int hf_lustre_obdo_o_nlink = -1; -static int hf_lustre_mds_rec_rename_rn_suppgid2 = -1; -static int hf_lustre_mds_rec_link_lk_padding_4 = -1; -static int hf_lustre_mds_rec_link_lk_cap = -1; static int hf_lustre_ldlm_extent_gid = -1; static int hf_lustre_obdo_o_uid = -1; -static int hf_lustre_mds_rec_create_cr_padding_5 = -1; static int hf_lustre_obdo_o_valid = -1; static int hf_lustre_ldlm_reply_lock_flags = -1; -static int hf_lustre_mds_rec_link_lk_padding_3 = -1; static int hf_lustre_obdo_o_misc = -1; -static int hf_lustre_mds_rec_setattr_sa_suppgid = -1; -static int hf_lustre_mds_rec_setattr_sa_attr_flags = -1; -static int hf_lustre_mds_rec_rename_rn_padding_2 = -1; + static int hf_lustre_ldlm_request_lock_handle = -1; static int hf_lustre_llog_logid_lgl_oid = -1; static int hf_lustre_ldlm_inodebits_bits = -1; static int hf_lustre_llog_log_hdr_llh_count = -1; -static int hf_lustre_mds_rec_unlink_ul_padding_4 = -1; static int hf_lustre_llog_gen_rec_lgr_tail = -1; static int hf_lustre_llog_catid_lci_padding3 = -1; static int hf_lustre_qunit_data_qd_qunit = -1; -static int hf_lustre_mds_rec_unlink_ul_fid1 = -1; static int hf_lustre_llog_setattr_rec_padding = -1; -static int hf_lustre_mds_rec_rename_rn_opcode = -1; -static int hf_lustre_mds_rec_create_cr_flags = -1; -static int hf_lustre_mds_rec_rename_rn_fid1 = -1; static int hf_lustre_llog_cookie_lgc_lgl = -1; static int hf_lustre_obd_quotactl_qc_dqinfo = -1; static int hf_lustre_llog_log_hdr_llh_bitmap = -1; -static int hf_lustre_mds_rec_setattr_sa_size = -1; -static int hf_lustre_mds_rec_rename_rn_suppgid1 = -1; static int hf_lustre_obd_quotactl_qc_stat = -1; static int hf_lustre_qunit_data_old2_qd_id = -1; static int hf_lustre_llog_logid_rec_padding2 = -1; -static int hf_lustre_mds_rec_unlink_ul_mode = -1; static int hf_lustre_llog_orphan_rec_lor_tail = -1; static int hf_lustre_llog_logid_rec_padding5 = -1; -static int hf_lustre_mds_rec_create_cr_fsgid = -1; static int hf_lustre_ldlm_intent_opc = -1; static int hf_lustre_llog_rec_hdr_lrh_type = -1; -static int hf_lustre_mds_rec_link_lk_fsgid = -1; static int hf_lustre_llog_rec_hdr_lrh_len = -1; static int hf_lustre_llog_setattr_rec_lsr_uid = -1; static int hf_lustre_lov_desc_ld_padding_1 = -1; @@ -622,24 +759,16 @@ static int hf_lustre_obdo_o_padding_4 = -1; static int hf_lustre_mgs_target_info_padding = -1; static int hf_lustre_obd_quotactl_qc_dqblk = -1; static int hf_lustre_llogd_conn_body_lgdc_gen = -1; -static int hf_lustre_mds_rec_create_cr_padding_2 = -1; -static int hf_lustre_mds_rec_setattr_sa_ctime = -1; static int hf_lustre_llog_log_hdr_llh_tail = -1; static int hf_lustre_obdo_o_size = -1; -static int hf_lustre_mds_rec_setattr_sa_cap = -1; static int hf_lustre_ldlm_extent_start = -1; -static int hf_lustre_mds_rec_unlink_ul_opcode = -1; static int hf_lustre_llog_size_change_rec_lsc_hdr = -1; -static int hf_lustre_mds_rec_unlink_ul_time = -1; static int hf_lustre_llog_create_rec_lcr_tail = -1; -static int hf_lustre_mds_rec_setattr_sa_mode = -1; static int hf_lustre_llog_logid_lgl_oseq = -1; static int hf_lustre_llog_create_rec_lcr_hdr = -1; static int hf_lustre_llog_cookie_lgc_padding = -1; -static int hf_lustre_mds_rec_create_cr_cap = -1; static int hf_lustre_qunit_data_old_qd_type = -1; static int hf_lustre_ldlm_flock_blocking_export = -1; -static int hf_lustre_mds_rec_setattr_sa_gid = -1; static int hf_lustre_lov_desc_ld_pattern = -1; static int hf_lustre_qunit_data_qd_id = -1; static int hf_lustre_mgs_target_info_mti_fsname = -1; @@ -647,63 +776,48 @@ static int hf_lustre_ldlm_request_lock_flags = -1; static int hf_lustre_obdo_o_mode = -1; static int hf_lustre_mgs_target_info_mti_svname = -1; static int hf_lustre_llogd_body_lgd_logid = -1; -static int hf_lustre_mds_rec_create_cr_opcode = -1; static int hf_lustre_llog_log_hdr_llh_size = -1; static int hf_lustre_llog_create_rec_padding = -1; static int hf_lustre_obdo_o_handle = -1; static int hf_lustre_obdo_o_atime = -1; static int hf_lustre_quota_adjust_qunit_qaq_id = -1; -static int hf_lustre_mds_rec_rename_rn_fid2 = -1; -static int hf_lustre_mds_rec_create_cr_replayfid = -1; static int hf_lustre_ldlm_lock_desc_l_policy_data = -1; -static int hf_lustre_mds_rec_link_lk_suppgid1 = -1; static int hf_lustre_obd_quotactl_qc_cmd = -1; -static int hf_lustre_mds_rec_rename_rn_padding_3 = -1; static int hf_lustre_qunit_data_padding = -1; static int hf_lustre_quota_adjust_qunit_qaq_flags = -1; static int hf_lustre_ldlm_lock_desc_l_granted_mode = -1; static int hf_lustre_obdo_o_seq = -1; -static int hf_lustre_mds_rec_unlink_ul_padding_2 = -1; static int hf_lustre_obdo_o_gid = -1; static int hf_lustre_llog_catid_lci_logid = -1; static int hf_lustre_llog_rec_tail_lrt_index = -1; static int hf_lustre_lov_desc_ld_default_stripe_count = -1; static int hf_lustre_ldlm_resource_desc_lr_padding = -1; static int hf_lustre_cfg_marker_cm_vers = -1; -static int hf_lustre_mds_rec_create_cr_fid = -1; static int hf_lustre_llog_unlink_rec_lur_hdr = -1; static int hf_lustre_llogd_body_lgd_index = -1; static int hf_lustre_cfg_marker_cm_tgtname = -1; -static int hf_lustre_mds_rec_unlink_ul_padding_1 = -1; -static int hf_lustre_mds_rec_unlink_ul_cap = -1; static int hf_lustre_llog_setattr_rec_lsr_ogen = -1; -static int hf_lustre_mds_rec_create_cr_padding_3 = -1; static int hf_lustre_llog_logid_rec_lid_hdr = -1; static int hf_lustre_obdo_o_ioepoch = -1; static int hf_lustre_ost_body_oa = -1; static int hf_lustre_llog_logid_rec_padding3 = -1; static int hf_lustre_llog_log_hdr_llh_flags = -1; static int hf_lustre_llog_setattr_rec_lsr_oid = -1; -static int hf_lustre_mds_rec_create_cr_mode = -1; static int hf_lustre_llog_size_change_rec_padding = -1; static int hf_lustre_mgs_target_info_mti_config_ver = -1; static int hf_lustre_cfg_marker_cm_createtime = -1; static int hf_lustre_qunit_data_old_qd_count = -1; -static int hf_lustre_mds_rec_setattr_sa_uid = -1; static int hf_lustre_llog_catid_lci_padding1 = -1; -static int hf_lustre_mds_rec_setattr_sa_atime = -1; static int hf_lustre_lov_desc_ld_active_tgt_count = -1; static int hf_lustre_obdo_o_lcookie = -1; static int hf_lustre_llog_gen_rec_lgr_gen = -1; static int hf_lustre_obdo_o_id = -1; static int hf_lustre_mgs_target_info_mti_uuid = -1; -static int hf_lustre_mds_rec_link_lk_padding_1 = -1; static int hf_lustre_llog_rec_hdr_lrh_index = -1; static int hf_lustre_llog_setattr_rec_lsr_hdr = -1; static int hf_lustre_mgs_target_info_mti_stripe_index = -1; static int hf_lustre_llog_gen_conn_cnt = -1; static int hf_lustre_obdo_o_padding_6 = -1; -static int hf_lustre_mds_rec_create_cr_suppgid = -1; static int hf_lustre_llog_cookie_lgc_index = -1; static int hf_lustre_lov_desc_ld_uuid = -1; static int hf_lustre_llog_create_rec_lcr_oid = -1; @@ -711,38 +825,24 @@ static int hf_lustre_ldlm_reply_lock_desc = -1; static int hf_lustre_lov_desc_ld_padding_0 = -1; static int hf_lustre_llog_unlink_rec_lur_ogen = -1; static int hf_lustre_llog_orphan_rec_lor_hdr = -1; -static int hf_lustre_mds_rec_rename_rn_fsuid = -1; static int hf_lustre_cfg_marker_cm_flags = -1; static int hf_lustre_obdo_o_padding_3 = -1; -static int hf_lustre_mds_rec_create_cr_fsuid = -1; -static int hf_lustre_mds_rec_unlink_ul_fsgid = -1; static int hf_lustre_ldlm_request_lock_desc = -1; -static int hf_lustre_mds_rec_unlink_ul_fsuid = -1; -static int hf_lustre_mds_rec_link_lk_suppgid2 = -1; static int hf_lustre_llog_orphan_rec_padding = -1; static int hf_lustre_obdo_o_flags = -1; static int hf_lustre_mgs_target_info_mti_params = -1; static int hf_lustre_llog_logid_lgl_ogen = -1; -static int hf_lustre_mds_rec_setattr_sa_valid = -1; static int hf_lustre_cfg_marker_cm_comment = -1; static int hf_lustre_llog_unlink_rec_lur_oid = -1; static int hf_lustre_qunit_data_qd_count = -1; -static int hf_lustre_mds_rec_rename_rn_padding_1 = -1; static int hf_lustre_obdo_o_mtime = -1; -static int hf_lustre_mds_rec_rename_rn_fsgid = -1; -static int hf_lustre_mds_rec_rename_rn_cap = -1; static int hf_lustre_obdo_o_blksize = -1; -static int hf_lustre_mds_rec_unlink_ul_suppgid = -1; static int hf_lustre_ldlm_res_id_name = -1; -static int hf_lustre_mds_rec_link_lk_time = -1; static int hf_lustre_ldlm_reply_lock_handle = -1; -static int hf_lustre_mds_rec_unlink_ul_padding_3 = -1; static int hf_lustre_llogd_body_lgd_saved_index = -1; -static int hf_lustre_mds_rec_rename_rn_padding_4 = -1; static int hf_lustre_qunit_data_old_qd_isblk = -1; static int hf_lustre_obdo_o_blocks = -1; static int hf_lustre_lov_desc_ld_padding_2 = -1; -static int hf_lustre_mds_rec_link_lk_fid2 = -1; static int hf_lustre_llog_logid_rec_lid_tail = -1; static int hf_lustre_obdo_o_grant = -1; static int hf_lustre_obdo_o_padding_2 = -1; @@ -758,16 +858,13 @@ static int hf_lustre_llog_log_hdr_llh_bitmap_offset=-1; static int hf_lustre_llog_orphan_rec_lor_oid = -1; static int hf_lustre_ldlm_reply_lock_padding = -1; static int hf_lustre_obd_quotactl_qc_id = -1; -static int hf_lustre_mds_rec_create_cr_padding_4 = -1; static int hf_lustre_llog_logid_rec_padding4 = -1; -static int hf_lustre_mds_rec_link_lk_padding_2 = -1; static int hf_lustre_llog_setattr_rec_lsr_gid = -1; static int hf_lustre_obd_quotactl_qc_type = -1; static int hf_lustre_cfg_marker_padding = -1; static int hf_lustre_mgs_target_info_mti_nids = -1; static int hf_lustre_obdo_o_stripe_idx = -1; static int hf_lustre_llogd_conn_body_lgdc_logid = -1; -static int hf_lustre_mds_rec_setattr_sa_fsuid = -1; static int hf_lustre_ldlm_flock_blocking_pid = -1; static int hf_lustre_lov_desc_ld_tgt_count = -1; static int hf_lustre_llogd_body_lgd_cur_offset=-1; @@ -778,16 +875,13 @@ static int hf_lustre_ldlm_flock_start = -1; static int hf_lustre_quota_adjust_qunit_qaq_bunit_sz = -1; static int hf_lustre_ldlm_flock_pid = -1; static int hf_lustre_lov_desc_ld_default_stripe_size = -1; -static int hf_lustre_mds_rec_setattr_sa_opcode = -1; static int hf_lustre_llog_log_hdr_llh_tgtuuid = -1; -static int hf_lustre_mds_rec_link_lk_fid1 = -1; static int hf_lustre_cfg_marker_cm_step = -1; static int hf_lustre_mgs_send_param_mgs_param = -1; static int hf_lustre_llog_create_rec_lcr_fid = -1; static int hf_lustre_lov_desc_ld_default_stripe_offset=-1; static int hf_lustre_ldlm_resource_desc_lr_name = -1; static int hf_lustre_llog_rec_tail_lrt_len = -1; -static int hf_lustre_mds_rec_setattr_sa_mtime = -1; static int hf_lustre_llog_log_hdr_llh_timestamp = -1; static int hf_lustre_llog_catid_lci_padding2 = -1; static int hf_lustre_llogd_conn_body_lgdc_ctxt_idx = -1; @@ -801,25 +895,18 @@ static int hf_lustre_llog_gen_mnt_cnt = -1; static int hf_lustre_llog_size_change_rec_lsc_tail = -1; static int hf_lustre_obdo_o_padding_5 = -1; static int hf_lustre_ldlm_lock_desc_l_resource = -1; -static int hf_lustre_mds_rec_rename_rn_time = -1; -static int hf_lustre_mds_rec_create_cr_rdev = -1; static int hf_lustre_obdo_o_parent_seq = -1; -static int hf_lustre_mds_rec_setattr_sa_fid = -1; static int hf_lustre_ldlm_request_lock_count = -1; static int hf_lustre_ldlm_flock_end = -1; -static int hf_lustre_mds_rec_link_lk_opcode = -1; static int hf_lustre_mgs_target_info_mti_nid_count = -1; static int hf_lustre_obdo_o_ctime = -1; static int hf_lustre_ldlm_reply_lock_policy_res2 = -1; static int hf_lustre_llogd_body_lgd_ctxt_idx = -1; -static int hf_lustre_mds_rec_unlink_ul_fid2 = -1; static int hf_lustre_lov_desc_ld_qos_maxage = -1; static int hf_lustre_ldlm_resource_desc_lr_type = -1; static int hf_lustre_llog_setattr_rec_lsr_tail = -1; static int hf_lustre_llog_cookie_lgc_subsys = -1; static int hf_lustre_llog_log_hdr_llh_hdr = -1; -static int hf_lustre_mds_rec_setattr_sa_fsgid = -1; -static int hf_lustre_mds_rec_setattr_sa_padding = -1; static int hf_lustre_llog_log_hdr_llh_reserved = -1; /* Header field declarations for field from lustre_user.h*/ @@ -941,7 +1028,7 @@ const value_string lustre_llog_hdr_llh_flags[]= { }; const value_string lustre_mds_flags_vals[] = { - {0x1,"MDS_BFLAG_UNCOMMITTED_WRITES"}, + {0x1,"MDS_BFLAG_UNCOMMITTED_WRITES"}, {0x80000000, "MDS_BFLAG_EXT_FLAGS"}, /* == EXT3_RESERVED_FL */ {0x00000008, "MDS_SYNC_FL "}, /* Synchronous updates */ {0x00000010, "MDS_IMMUTABLE_FL "}, /* Immutable file */ @@ -965,6 +1052,7 @@ const value_string lustre_mds_reint_t_vals[] = { { REINT_UNLINK, "REINT_UNLINK" }, { REINT_RENAME, "REINT_RENAME" }, { REINT_OPEN, "REINT_OPEN" }, + { REINT_SETXATTR, "REINT_SETXATTR" }, { 0, NULL } }; const value_string lustre_op_codes[] = { @@ -1092,7 +1180,7 @@ const value_string lustre_llog_cmd_t_vals[] = { /* ------------------------------------------------------------------- */ -/* display functions */ +/* display functions */ /* ------------------------------------------------------------------- */ /* display str in left corner and in COL */ /* TODO : do we need to use inline here ?*/ @@ -1107,7 +1195,7 @@ inline static void display_info_str(proto_item *pi, column_info *cinfo, gint col col_append_str(cinfo, col, str); } -/* +/* * Need to be (re)written */ static void display_info_fstr(proto_item *pi, column_info *cinfo, gint col, const char* format, const gchar * str){ @@ -1130,7 +1218,7 @@ static void display_info_fstr(proto_item *pi, column_info *cinfo, gint col, cons /* ------------------------------ basic dissect functions ------------------------ */ -static int +static int dissect_uint64 (tvbuff_t *tvb, gint offset, packet_info *pinfo _U_, proto_tree *tree, int hfindex) { @@ -1138,7 +1226,7 @@ dissect_uint64 return offset+8; } -static int +static int dissect_uint32 (tvbuff_t *tvb, gint offset, packet_info *pinfo _U_, proto_tree *tree, int hfindex) { @@ -1146,7 +1234,7 @@ dissect_uint32 return offset+4; } -static int +static int dissect_uint8 (tvbuff_t *tvb, gint offset, packet_info *pinfo _U_, proto_tree *tree, int hfindex) { @@ -2062,7 +2150,7 @@ lustre_dissect_element_ll_fid_f_type(tvbuff_t *tvb _U_, int offset _U_, packet_i } int -lustre_dissect_struct_ll_fid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) +lustre_dissect_struct_lu_fid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) { proto_item *item = NULL; proto_tree *tree = NULL; @@ -2089,45 +2177,68 @@ lustre_dissect_struct_ll_fid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pin return offset; } -/* IDL: struct mds_status_req { */ -/* IDL: uint32 flags; */ -/* IDL: uint32 repbuf; */ +/* IDL: struct obd_dqinfo { */ +/* IDL: uint64 dqi_bgrace; */ +/* IDL: uint64 dqi_igrace; */ +/* IDL: uint32 dqi_flags; */ +/* IDL: uint32 dqi_valid; */ /* IDL: } */ static int -lustre_dissect_element_mds_status_req_flags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_obd_dqinfo_dqi_bgrace(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset = dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_obd_dqinfo_dqi_bgrace); + + return offset; +} + +static int +lustre_dissect_element_obd_dqinfo_dqi_igrace(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset = dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_obd_dqinfo_dqi_igrace); + + return offset; +} + +static int +lustre_dissect_element_obd_dqinfo_dqi_flags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_status_req_flags); + offset = dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_obd_dqinfo_dqi_flags); return offset; } static int -lustre_dissect_element_mds_status_req_repbuf(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_obd_dqinfo_dqi_valid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_status_req_repbuf); + offset = dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_obd_dqinfo_dqi_valid); return offset; } int -lustre_dissect_struct_mds_status_req(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) +lustre_dissect_struct_obd_dqinfo(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) { proto_item *item = NULL; proto_tree *tree = NULL; int old_offset; - old_offset=offset; + + old_offset = offset; if (parent_tree) { item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, TRUE); - tree = proto_item_add_subtree(item, ett_lustre_mds_status_req); + tree = proto_item_add_subtree(item, ett_lustre_obd_dqinfo); } - offset=lustre_dissect_element_mds_status_req_flags(tvb, offset, pinfo, tree); + offset = lustre_dissect_element_obd_dqinfo_dqi_bgrace(tvb, offset, pinfo, tree); + + offset = lustre_dissect_element_obd_dqinfo_dqi_igrace(tvb, offset, pinfo, tree); + + offset = lustre_dissect_element_obd_dqinfo_dqi_flags(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_status_req_repbuf(tvb, offset, pinfo, tree); + offset = lustre_dissect_element_obd_dqinfo_dqi_valid(tvb, offset, pinfo, tree); proto_item_set_len(item, offset-old_offset); @@ -2135,334 +2246,236 @@ lustre_dissect_struct_mds_status_req(tvbuff_t *tvb _U_, int offset _U_, packet_i return offset; } -/* IDL: struct mds_body { */ -/* IDL: struct ll_fid { */ -/* IDL: } fid1; */ -/* IDL: struct ll_fid { */ -/* IDL: } fid2; */ -/* IDL: struct lustre_handle { */ -/* IDL: } handle; */ -/* IDL: uint64 valid; */ -/* IDL: uint64 size; */ -/* IDL: uint64 mtime; */ -/* IDL: uint64 atime; */ -/* IDL: uint64 ctime; */ -/* IDL: uint64 blocks; */ -/* IDL: uint64 io_epoch; */ -/* IDL: uint64 ino; */ -/* IDL: uint32 fsuid; */ -/* IDL: uint32 fsgid; */ -/* IDL: uint32 capability; */ -/* IDL: uint32 mode; */ -/* IDL: uint32 uid; */ -/* IDL: uint32 gid; */ -/* IDL: uint32 flags; */ -/* IDL: uint32 rdev; */ -/* IDL: uint32 nlink; */ -/* IDL: uint32 generation; */ -/* IDL: uint32 suppgid; */ -/* IDL: uint32 eadatasize; */ -/* IDL: uint32 aclsize; */ -/* IDL: uint32 max_mdsize; */ -/* IDL: uint32 max_cookiesize; */ -/* IDL: uint32 padding_4; */ +/* IDL: struct obd_dqblk { */ +/* IDL: uint64 dqb_bhardlimit; */ +/* IDL: uint64 dqb_bsoftlimit; */ +/* IDL: uint64 dqb_curspace; */ +/* IDL: uint64 dqb_ihardlimit; */ +/* IDL: uint64 dqb_isoftlimit; */ +/* IDL: uint64 dqb_curinodes; */ +/* IDL: uint64 dqb_btime; */ +/* IDL: uint64 dqb_itime; */ +/* IDL: uint32 dqb_valid; */ +/* IDL: uint32 padding; */ /* IDL: } */ static int -lustre_dissect_element_mds_body_fid1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_obd_dqblk_dqb_bhardlimit(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=lustre_dissect_struct_ll_fid(tvb,offset,pinfo,tree,hf_lustre_mds_body_fid1); + offset = dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_obd_dqblk_dqb_bhardlimit); + return offset; } static int -lustre_dissect_element_mds_body_fid2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_obd_dqblk_dqb_bsoftlimit(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=lustre_dissect_struct_ll_fid(tvb,offset,pinfo,tree,hf_lustre_mds_body_fid2); + offset = dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_obd_dqblk_dqb_bsoftlimit); + return offset; } static int -lustre_dissect_element_mds_body_handle(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_obd_dqblk_dqb_curspace(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=lustre_dissect_struct_handle_cookie(tvb,offset,pinfo,tree,hf_lustre_mds_body_handle); + offset = dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_obd_dqblk_dqb_curspace); return offset; } static int -lustre_dissect_element_mds_body_valid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_obd_dqblk_dqb_ihardlimit(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mds_body_valid); + offset = dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_obd_dqblk_dqb_ihardlimit); return offset; } static int -lustre_dissect_element_mds_body_size(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_obd_dqblk_dqb_isoftlimit(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mds_body_size); + offset = dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_obd_dqblk_dqb_isoftlimit); return offset; } static int -lustre_dissect_element_mds_body_mtime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_obd_dqblk_dqb_curinodes(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - nstime_t ns; - /* timestamp */ - ns.secs = tvb_get_letohl(tvb,offset); - ns.nsecs=0; - proto_tree_add_time(tree, hf_lustre_mds_body_mtime, tvb, offset, 8, &ns ); - offset+=8; + offset = dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_obd_dqblk_dqb_curinodes); + return offset; } static int -lustre_dissect_element_mds_body_atime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_obd_dqblk_dqb_btime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { + nstime_t ns; /* timestamp */ ns.secs = tvb_get_letohl(tvb,offset); ns.nsecs=0; - proto_tree_add_time(tree, hf_lustre_mds_body_atime, tvb, offset, 8, &ns ); + proto_tree_add_time(tree, hf_lustre_obd_dqblk_dqb_btime, tvb, offset, 8, &ns ); offset+=8; - return offset; } static int -lustre_dissect_element_mds_body_ctime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_obd_dqblk_dqb_itime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { nstime_t ns; /* timestamp */ ns.secs = tvb_get_letohl(tvb,offset); ns.nsecs=0; - proto_tree_add_time(tree, hf_lustre_mds_body_ctime, tvb, offset, 8, &ns ); + proto_tree_add_time(tree, hf_lustre_obd_dqblk_dqb_itime, tvb, offset, 8, &ns ); offset+=8; + return offset; } static int -lustre_dissect_element_mds_body_blocks(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_obd_dqblk_dqb_valid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mds_body_blocks); + offset = dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_obd_dqblk_dqb_valid); return offset; } static int -lustre_dissect_element_mds_body_io_epoch(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_obd_dqblk_padding(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mds_body_io_epoch); + offset = dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_obd_dqblk_padding); return offset; } -static int -lustre_dissect_element_mds_body_ino(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +int +lustre_dissect_struct_obd_dqblk(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) { - offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mds_body_ino); + proto_item *item = NULL; + proto_tree *tree = NULL; + int old_offset; - return offset; -} -static int -lustre_dissect_element_mds_body_fsuid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) -{ - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_body_fsuid); - return offset; -} + old_offset = offset; -static int -lustre_dissect_element_mds_body_fsgid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) -{ - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_body_fsgid); + if (parent_tree) { + item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, TRUE); + tree = proto_item_add_subtree(item, ett_lustre_obd_dqblk); + } - return offset; -} + offset = lustre_dissect_element_obd_dqblk_dqb_bhardlimit(tvb, offset, pinfo, tree); -static int -lustre_dissect_element_mds_body_capability(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) -{ - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_body_capability); + offset = lustre_dissect_element_obd_dqblk_dqb_bsoftlimit(tvb, offset, pinfo, tree); - return offset; -} + offset = lustre_dissect_element_obd_dqblk_dqb_curspace(tvb, offset, pinfo, tree); -static int -lustre_dissect_element_mds_body_mode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) -{ - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_body_mode); + offset = lustre_dissect_element_obd_dqblk_dqb_ihardlimit(tvb, offset, pinfo, tree); - return offset; -} + offset = lustre_dissect_element_obd_dqblk_dqb_isoftlimit(tvb, offset, pinfo, tree); -static int -lustre_dissect_element_mds_body_uid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) -{ - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_body_uid); + offset = lustre_dissect_element_obd_dqblk_dqb_curinodes(tvb, offset, pinfo, tree); - return offset; -} + offset = lustre_dissect_element_obd_dqblk_dqb_btime(tvb, offset, pinfo, tree); -static int -lustre_dissect_element_mds_body_gid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) -{ - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_body_gid); + offset = lustre_dissect_element_obd_dqblk_dqb_itime(tvb, offset, pinfo, tree); - return offset; -} + offset = lustre_dissect_element_obd_dqblk_dqb_valid(tvb, offset, pinfo, tree); -static int -lustre_dissect_element_mds_body_flags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) -{ - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_body_flags); + offset = lustre_dissect_element_obd_dqblk_padding(tvb, offset, pinfo, tree); - return offset; -} -static int -lustre_dissect_element_mds_body_rdev(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) -{ - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_body_rdev); + proto_item_set_len(item, offset-old_offset); return offset; } -static int -lustre_dissect_element_mds_body_nlink(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) -{ - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_body_nlink); - return offset; -} +/* IDL: struct obd_quotactl { */ +/* IDL: uint32 qc_cmd; */ +/* IDL: uint32 qc_type; */ +/* IDL: uint32 qc_id; */ +/* IDL: uint32 qc_stat; */ +/* IDL: struct obd_dqinfo { */ +/* IDL: } qc_dqinfo; */ +/* IDL: struct obd_dqblk { */ +/* IDL: } qc_dqblk; */ +/* IDL: } */ static int -lustre_dissect_element_mds_body_generation(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_obd_quotactl_qc_cmd(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_body_generation); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_obd_quotactl_qc_cmd); return offset; } static int -lustre_dissect_element_mds_body_suppgid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_obd_quotactl_qc_type(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_body_suppgid); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_obd_quotactl_qc_type); return offset; } static int -lustre_dissect_element_mds_body_eadatasize(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_obd_quotactl_qc_id(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_body_eadatasize); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_obd_quotactl_qc_id); return offset; } static int -lustre_dissect_element_mds_body_aclsize(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_obd_quotactl_qc_stat(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_body_aclsize); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_obd_quotactl_qc_stat); return offset; } -static int -lustre_dissect_element_mds_body_max_mdsize(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) -{ - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_body_max_mdsize); - return offset; -} static int -lustre_dissect_element_mds_body_max_cookiesize(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_obd_quotactl_qc_dqblk(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_body_max_cookiesize); - + offset=lustre_dissect_struct_obd_dqblk(tvb,offset,pinfo,tree,hf_lustre_obd_quotactl_qc_dqblk); return offset; } static int -lustre_dissect_element_mds_body_padding_4(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_obd_quotactl_qc_dqinfo(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_body_padding_4); - + offset=lustre_dissect_struct_obd_dqinfo(tvb,offset,pinfo,tree,hf_lustre_obd_quotactl_qc_dqinfo); return offset; } int -lustre_dissect_struct_mds_body(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) +lustre_dissect_struct_obd_quotactl(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) { proto_item *item = NULL; proto_tree *tree = NULL; int old_offset; - old_offset=offset; if (parent_tree) { item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, TRUE); - tree = proto_item_add_subtree(item, ett_lustre_mds_body); + tree = proto_item_add_subtree(item, ett_lustre_obd_quotactl); } - offset=lustre_dissect_element_mds_body_fid1(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_fid2(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_handle(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_valid(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_size(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_mtime(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_atime(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_ctime(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_blocks(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_io_epoch(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_ino(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_fsuid(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_fsgid(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_capability(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_mode(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_uid(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_gid(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_flags(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_rdev(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_nlink(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_generation(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_body_suppgid(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_obd_quotactl_qc_cmd(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_body_eadatasize(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_obd_quotactl_qc_type(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_body_aclsize(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_obd_quotactl_qc_id(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_body_max_mdsize(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_obd_quotactl_qc_stat(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_body_max_cookiesize(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_obd_quotactl_qc_dqinfo(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_body_padding_4(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_obd_quotactl_qc_dqblk(tvb, offset, pinfo, tree); proto_item_set_len(item, offset-old_offset); @@ -2470,47 +2483,57 @@ lustre_dissect_struct_mds_body(tvbuff_t *tvb _U_, int offset _U_, packet_info *p return offset; } -/* IDL: struct obd_dqinfo { */ -/* IDL: uint64 dqi_bgrace; */ -/* IDL: uint64 dqi_igrace; */ -/* IDL: uint32 dqi_flags; */ -/* IDL: uint32 dqi_valid; */ + +/* IDL: struct quota_adjust_qunit { */ +/* IDL: uint32 qaq_flags; */ +/* IDL: uint32 qaq_id; */ +/* IDL: uint64 qaq_bunit_sz; */ +/* IDL: uint64 qaq_iunit_sz; */ +/* IDL: uint64 padding1; */ /* IDL: } */ static int -lustre_dissect_element_obd_dqinfo_dqi_bgrace(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_quota_adjust_qunit_qaq_flags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset = dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_obd_dqinfo_dqi_bgrace); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_quota_adjust_qunit_qaq_flags); return offset; } static int -lustre_dissect_element_obd_dqinfo_dqi_igrace(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_quota_adjust_qunit_qaq_id(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset = dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_obd_dqinfo_dqi_igrace); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_quota_adjust_qunit_qaq_id); return offset; } static int -lustre_dissect_element_obd_dqinfo_dqi_flags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_quota_adjust_qunit_qaq_bunit_sz(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset = dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_obd_dqinfo_dqi_flags); + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_quota_adjust_qunit_qaq_bunit_sz); return offset; } static int -lustre_dissect_element_obd_dqinfo_dqi_valid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_quota_adjust_qunit_qaq_iunit_sz(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset = dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_obd_dqinfo_dqi_valid); + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_quota_adjust_qunit_qaq_iunit_sz); + + return offset; +} + +static int +lustre_dissect_element_quota_adjust_qunit_padding1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_quota_adjust_qunit_padding1); return offset; } int -lustre_dissect_struct_obd_dqinfo(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) +lustre_dissect_struct_quota_adjust_qunit(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) { proto_item *item = NULL; proto_tree *tree = NULL; @@ -2518,20 +2541,22 @@ lustre_dissect_struct_obd_dqinfo(tvbuff_t *tvb _U_, int offset _U_, packet_info - old_offset = offset; + old_offset=offset; if (parent_tree) { item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, TRUE); - tree = proto_item_add_subtree(item, ett_lustre_obd_dqinfo); + tree = proto_item_add_subtree(item, ett_lustre_quota_adjust_qunit); } - offset = lustre_dissect_element_obd_dqinfo_dqi_bgrace(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_quota_adjust_qunit_qaq_flags(tvb, offset, pinfo, tree); - offset = lustre_dissect_element_obd_dqinfo_dqi_igrace(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_quota_adjust_qunit_qaq_id(tvb, offset, pinfo, tree); - offset = lustre_dissect_element_obd_dqinfo_dqi_flags(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_quota_adjust_qunit_qaq_bunit_sz(tvb, offset, pinfo, tree); - offset = lustre_dissect_element_obd_dqinfo_dqi_valid(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_quota_adjust_qunit_qaq_iunit_sz(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_quota_adjust_qunit_padding1(tvb, offset, pinfo, tree); proto_item_set_len(item, offset-old_offset); @@ -2539,536 +2564,1302 @@ lustre_dissect_struct_obd_dqinfo(tvbuff_t *tvb _U_, int offset _U_, packet_info return offset; } -/* IDL: struct obd_dqblk { */ -/* IDL: uint64 dqb_bhardlimit; */ -/* IDL: uint64 dqb_bsoftlimit; */ -/* IDL: uint64 dqb_curspace; */ -/* IDL: uint64 dqb_ihardlimit; */ -/* IDL: uint64 dqb_isoftlimit; */ -/* IDL: uint64 dqb_curinodes; */ -/* IDL: uint64 dqb_btime; */ -/* IDL: uint64 dqb_itime; */ -/* IDL: uint32 dqb_valid; */ -/* IDL: uint32 padding; */ +/* IDL: struct mdt_body { */ +/* IDL: struct lu_fid { */ +/* IDL: } fid1; */ +/* IDL: struct lu_fid { */ +/* IDL: } fid2; */ +/* IDL: struct lustre_handle { */ +/* IDL: } handle; */ +/* IDL: uint64 valid; */ +/* IDL: uint64 size; */ +/* IDL: uint64 mtime; */ +/* IDL: uint64 atime; */ +/* IDL: uint64 ctime; */ +/* IDL: uint64 blocks; */ +/* IDL: uint64 ioepoch; */ +/* IDL: uint64 ino; */ +/* IDL: uint32 fsuid; */ +/* IDL: uint32 fsgid; */ +/* IDL: uint32 capability; */ +/* IDL: uint32 mode; */ +/* IDL: uint32 uid; */ +/* IDL: uint32 gid; */ +/* IDL: uint32 flags; */ +/* IDL: uint32 rdev; */ +/* IDL: uint32 nlink; */ +/* IDL: uint32 generation; */ +/* IDL: uint32 suppgid; */ +/* IDL: uint32 eadatasize; */ +/* IDL: uint32 aclsize; */ +/* IDL: uint32 max_mdsize; */ +/* IDL: uint32 max_cookiesize; */ +/* IDL: uint32 uid_h; */ +/* IDL: uint32 gid_h; */ +/* IDL: uint32 padding_5; */ +/* IDL: uint64 padding_6; */ +/* IDL: uint64 padding_7; */ +/* IDL: uint64 padding_8; */ +/* IDL: uint64 padding_9; */ +/* IDL: uint64 padding_10; */ /* IDL: } */ static int -lustre_dissect_element_obd_dqblk_dqb_bhardlimit(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_body_fid1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset = dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_obd_dqblk_dqb_bhardlimit); - + offset=lustre_dissect_struct_lu_fid(tvb,offset,pinfo,tree,hf_lustre_mdt_body_fid1); return offset; } static int -lustre_dissect_element_obd_dqblk_dqb_bsoftlimit(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_body_fid2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset = dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_obd_dqblk_dqb_bsoftlimit); - + offset=lustre_dissect_struct_lu_fid(tvb,offset,pinfo,tree,hf_lustre_mdt_body_fid2); return offset; } static int -lustre_dissect_element_obd_dqblk_dqb_curspace(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_body_handle(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset = dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_obd_dqblk_dqb_curspace); + offset=lustre_dissect_struct_handle_cookie(tvb,offset,pinfo,tree,hf_lustre_mdt_body_handle); return offset; } static int -lustre_dissect_element_obd_dqblk_dqb_ihardlimit(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_body_valid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset = dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_obd_dqblk_dqb_ihardlimit); + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_body_valid); return offset; } static int -lustre_dissect_element_obd_dqblk_dqb_isoftlimit(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_body_size(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset = dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_obd_dqblk_dqb_isoftlimit); + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_body_size); return offset; } static int -lustre_dissect_element_obd_dqblk_dqb_curinodes(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_body_mtime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset = dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_obd_dqblk_dqb_curinodes); - + nstime_t ns; + /* timestamp */ + ns.secs = tvb_get_letohl(tvb,offset); + ns.nsecs=0; + proto_tree_add_time(tree, hf_lustre_mdt_body_mtime, tvb, offset, 8, &ns ); + offset+=8; return offset; } static int -lustre_dissect_element_obd_dqblk_dqb_btime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_body_atime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - nstime_t ns; /* timestamp */ ns.secs = tvb_get_letohl(tvb,offset); ns.nsecs=0; - proto_tree_add_time(tree, hf_lustre_obd_dqblk_dqb_btime, tvb, offset, 8, &ns ); + proto_tree_add_time(tree, hf_lustre_mdt_body_atime, tvb, offset, 8, &ns ); offset+=8; + return offset; } static int -lustre_dissect_element_obd_dqblk_dqb_itime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_body_ctime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { nstime_t ns; /* timestamp */ ns.secs = tvb_get_letohl(tvb,offset); ns.nsecs=0; - proto_tree_add_time(tree, hf_lustre_obd_dqblk_dqb_itime, tvb, offset, 8, &ns ); + proto_tree_add_time(tree, hf_lustre_mdt_body_ctime, tvb, offset, 8, &ns ); offset+=8; + return offset; +} + +static int +lustre_dissect_element_mdt_body_blocks(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_body_blocks); return offset; } static int -lustre_dissect_element_obd_dqblk_dqb_valid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_body_ioepoch(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset = dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_obd_dqblk_dqb_valid); + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_body_ioepoch); return offset; } static int -lustre_dissect_element_obd_dqblk_padding(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_body_ino(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset = dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_obd_dqblk_padding); + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_body_ino); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_fsuid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_body_fsuid); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_fsgid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_body_fsgid); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_capability(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_body_capability); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_mode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_body_mode); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_uid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_body_uid); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_gid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_body_gid); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_flags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_body_flags); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_rdev(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_body_rdev); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_nlink(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_body_nlink); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_generation(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_body_generation); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_suppgid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_body_suppgid); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_eadatasize(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_body_eadatasize); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_aclsize(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_body_aclsize); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_max_mdsize(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_body_max_mdsize); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_max_cookiesize(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_body_max_cookiesize); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_uid_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_body_uid_h); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_gid_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_body_gid_h); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_padding_5(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_body_padding_5); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_padding_6(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_body_padding_6); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_padding_7(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_body_padding_7); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_padding_8(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_body_padding_8); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_padding_9(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_body_padding_9); + + return offset; +} + +static int +lustre_dissect_element_mdt_body_padding_10(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uin64(tvb, offset, pinfo, tree, hf_lustre_mdt_body_padding_10); return offset; } int -lustre_dissect_struct_obd_dqblk(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) +lustre_dissect_struct_mdt_body(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) { proto_item *item = NULL; proto_tree *tree = NULL; int old_offset; - - old_offset = offset; + old_offset=offset; if (parent_tree) { item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, TRUE); - tree = proto_item_add_subtree(item, ett_lustre_obd_dqblk); + tree = proto_item_add_subtree(item, ett_lustre_mdt_body); } - offset = lustre_dissect_element_obd_dqblk_dqb_bhardlimit(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_body_fid1(tvb, offset, pinfo, tree); - offset = lustre_dissect_element_obd_dqblk_dqb_bsoftlimit(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_body_fid2(tvb, offset, pinfo, tree); - offset = lustre_dissect_element_obd_dqblk_dqb_curspace(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_body_handle(tvb, offset, pinfo, tree); - offset = lustre_dissect_element_obd_dqblk_dqb_ihardlimit(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_body_valid(tvb, offset, pinfo, tree); - offset = lustre_dissect_element_obd_dqblk_dqb_isoftlimit(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_body_size(tvb, offset, pinfo, tree); - offset = lustre_dissect_element_obd_dqblk_dqb_curinodes(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_body_mtime(tvb, offset, pinfo, tree); - offset = lustre_dissect_element_obd_dqblk_dqb_btime(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_body_atime(tvb, offset, pinfo, tree); - offset = lustre_dissect_element_obd_dqblk_dqb_itime(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_body_ctime(tvb, offset, pinfo, tree); - offset = lustre_dissect_element_obd_dqblk_dqb_valid(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_body_blocks(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_ioepoch(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_ino(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_fsuid(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_fsgid(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_capability(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_mode(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_uid(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_gid(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_flags(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_rdev(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_nlink(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_generation(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_suppgid(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_eadatasize(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_aclsize(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_max_mdsize(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_max_cookiesize(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_uid_h(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_gid_h(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_padding_5(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_padding_6(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_padding_7(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_padding_8(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_padding_9(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_body_padding_10(tvb, offset, pinfo, tree); + + + proto_item_set_len(item, offset-old_offset); + + return offset; +} + +/* I don't find where this struct appear on wire.. need to search mdc_setattr_pack() */ +/* IDL: struct mdt_rec_setattr { */ +/* IDL: uint32 sa_opcode; */ +/* IDL: uint32 sa_cap; */ +/* IDL: uint32 sa_fsuid; */ +/* IDL: uint32 sa_fsuid_h; */ +/* IDL: uint32 sa_fsgid; */ +/* IDL: uint32 sa_fsgid_h; */ +/* IDL: uint32 sa_suppgid; */ +/* IDL: uint32 sa_suppgid_h; */ +/* IDL: uint32 sa_padding_1; */ +/* IDL: uint32 sa_padding_1_h; */ +/* IDL: struct lu_fid { */ +/* IDL: } sa_fid; */ +/* IDL: uint64 sa_valid; */ +/* IDL: uint32 sa_uid; */ +/* IDL: uint32 sa_gid; */ +/* IDL: uint64 sa_size; */ +/* IDL: uint64 sa_blocks; */ +/* IDL: uint64 sa_mtime; */ +/* IDL: uint64 sa_atime; */ +/* IDL: uint64 sa_ctime; */ +/* IDL: uint32 sa_attr_flags; */ +/* IDL: uint32 sa_mode; */ +/* IDL: uint32 sa_padding_2; */ +/* IDL: uint32 sa_padding_3; */ +/* IDL: uint32 sa_padding_4; */ +/* IDL: uint32 sa_padding_5; */ +/* IDL: } */ + +static int +lustre_dissect_element_mdt_rec_setattr_sa_opcode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_opcode); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_cap(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_cap); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_fsuid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_fsuid); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_fsuid_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_fsuid_h); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_fsgid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_fsgid); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_fsgid_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_fsgid_h); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_suppgid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_suppgid); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_suppgid_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_suppgid_h); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_padding_1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_padding_1); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_padding_1_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_padding_1_h); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_fid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=lustre_dissect_struct_lu_fid(tvb,offset,pinfo,tree,hf_lustre_mdt_rec_setattr_sa_fid); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_valid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_valid); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_uid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_uid); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_gid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_gid); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_size(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_size); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_blocks(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_blocks); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_mtime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + + nstime_t ns; + /* timestamp */ + ns.secs = tvb_get_letohl(tvb,offset); + ns.nsecs=0; + proto_tree_add_time(tree, hf_lustre_mdt_rec_setattr_sa_mtime, tvb, offset, 8, &ns ); + offset+=8; + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_atime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + nstime_t ns; + /* timestamp */ + ns.secs = tvb_get_letohl(tvb,offset); + ns.nsecs=0; + proto_tree_add_time(tree, hf_lustre_mdt_rec_setattr_sa_atime, tvb, offset, 8, &ns ); + offset+=8; + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_ctime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + nstime_t ns; + /* timestamp */ + ns.secs = tvb_get_letohl(tvb,offset); + ns.nsecs=0; + proto_tree_add_time(tree, hf_lustre_mdt_rec_setattr_sa_ctime, tvb, offset, 8, &ns ); + offset+=8; + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_attr_flags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_attr_flags); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_mode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_mode); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_padding_2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_padding_2); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_padding_3(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_padding_3); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_padding_4(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_padding_4); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_setattr_sa_padding_5(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr_sa_padding_5); + + return offset; +} + +int +lustre_dissect_struct_mdt_rec_setattr(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) +{ + proto_item *item = NULL; + proto_tree *tree = NULL; + int old_offset; + + guint32 sa_opcode ; + + + old_offset=offset; + + if (parent_tree) { + item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, TRUE); + tree = proto_item_add_subtree(item, ett_lustre_mdt_rec_setattr); + } + sa_opcode=tvb_get_letohl(tvb,offset); + display_info_fstr(parent_tree->parent, pinfo->cinfo, COL_INFO, "[%s]", val_to_str(sa_opcode, lustre_mds_reint_t_vals, "Unknown sa_opc")); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_opcode(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_cap(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_fsuid(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_fsuid_h(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_fsgid(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_fsgid_h(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_suppgid(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_suppgid_h(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_padding_1(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_padding_1_h(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_fid(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_valid(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_uid(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_gid(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_size(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_blocks(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_mtime(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_atime(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_ctime(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_attr_flags(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_mode(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_padding_2(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_padding_3(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_padding_4(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setattr_sa_padding_5(tvb, offset, pinfo, tree); + + + proto_item_set_len(item, offset-old_offset); + + return offset; +} + +/* IDL: struct mdt_rec_create { */ +/* IDL: uint32 cr_opcode; */ +/* IDL: uint32 cr_cap; */ +/* IDL: uint32 cr_fsuid; */ +/* IDL: uint32 cr_fsuid_h; */ +/* IDL: uint32 cr_fsgid; */ +/* IDL: uint32 cr_fsgid_h; */ +/* IDL: uint32 cr_suppgid1; */ +/* IDL: uint32 cr_suppgid1_h; */ +/* IDL: uint32 cr_suppgid2; */ +/* IDL: uint32 cr_suppgid2_h; */ +/* IDL: struct lu_fid { */ +/* IDL: } cr_fid1; */ +/* IDL: struct lu_fid { */ +/* IDL: } cr_fid2; */ +/* IDL: struct lustre_handle { */ +/* IDL: } cr_old_handle; */ +/* IDL: uint64 cr_time; */ +/* IDL: uint64 cr_rdev; */ +/* IDL: uint64 cr_ioepoch; */ +/* IDL: uint64 cr_padding_1; */ +/* IDL: uint32 cr_mode; */ +/* IDL: uint32 cr_bias; */ +/* IDL: uint32 cr_flags_l; */ +/* IDL: uint32 cr_flags_h; */ +/* IDL: uint32 cr_padding_3; */ +/* IDL: uint32 cr_padding_4; */ +/* IDL: } */ + +static int +lustre_dissect_element_mdt_rec_create_cr_opcode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create_cr_opcode); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_create_cr_cap(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create_cr_cap); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_create_cr_fsuid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create_cr_fsuid); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_create_cr_fsuid_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create_cr_fsuid_h); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_create_cr_fsgid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create_cr_fsgid); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_create_cr_fsgid_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create_cr_fsgid_h); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_create_cr_suppgid1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create_cr_suppgid1); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_create_cr_suppgid1_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create_cr_suppgid1_h); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_create_cr_suppgid2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create_cr_suppgid2); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_create_cr_suppgid2_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create_cr_suppgid2_h); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_create_cr_fid1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=lustre_dissect_struct_lu_fid(tvb,offset,pinfo,tree,hf_lustre_mdt_rec_create_cr_fid1); + return offset; +} + +static int +lustre_dissect_element_mdt_rec_create_cr_fid2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=lustre_dissect_struct_lu_fid(tvb,offset,pinfo,tree,hf_lustre_mdt_rec_create_cr_fid2); + return offset; +} + +static int +lustre_dissect_element_mdt_rec_create_cr_old_handle(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=lustre_dissect_struct_handle_cookie(tvb,offset,pinfo,tree,hf_lustre_mdt_rec_create_cr_old_handle); + return offset; +} - offset = lustre_dissect_element_obd_dqblk_padding(tvb, offset, pinfo, tree); +static int +lustre_dissect_element_mdt_rec_create_cr_time(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + nstime_t ns; + /* timestamp */ + ns.secs = tvb_get_letohl(tvb,offset); + ns.nsecs=0; + proto_tree_add_time(tree, hf_lustre_mdt_rec_create_cr_time, tvb, offset, 8, &ns ); + offset+=8; + return offset; +} - proto_item_set_len(item, offset-old_offset); +static int +lustre_dissect_element_mdt_rec_create_cr_rdev(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create_cr_rdev); return offset; } +static int +lustre_dissect_element_mdt_rec_create_cr_ioepoch(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create_cr_ioepoch); -/* IDL: struct obd_quotactl { */ -/* IDL: uint32 qc_cmd; */ -/* IDL: uint32 qc_type; */ -/* IDL: uint32 qc_id; */ -/* IDL: uint32 qc_stat; */ -/* IDL: struct obd_dqinfo { */ -/* IDL: } qc_dqinfo; */ -/* IDL: struct obd_dqblk { */ -/* IDL: } qc_dqblk; */ -/* IDL: } */ + return offset; +} static int -lustre_dissect_element_obd_quotactl_qc_cmd(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_create_cr_padding_1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_obd_quotactl_qc_cmd); + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create_cr_padding_1); return offset; } static int -lustre_dissect_element_obd_quotactl_qc_type(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_create_cr_mode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_obd_quotactl_qc_type); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create_cr_mode); return offset; } static int -lustre_dissect_element_obd_quotactl_qc_id(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_create_cr_bias(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_obd_quotactl_qc_id); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create_cr_bias); return offset; } static int -lustre_dissect_element_obd_quotactl_qc_stat(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_create_cr_flags_l(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_obd_quotactl_qc_stat); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create_cr_flags_l); return offset; } +static int +lustre_dissect_element_mdt_rec_create_cr_flags_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create_cr_flags_h); + return offset; +} static int -lustre_dissect_element_obd_quotactl_qc_dqblk(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_create_cr_padding_3(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=lustre_dissect_struct_obd_dqblk(tvb,offset,pinfo,tree,hf_lustre_obd_quotactl_qc_dqblk); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create_cr_padding_3); + return offset; } static int -lustre_dissect_element_obd_quotactl_qc_dqinfo(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_create_cr_padding_4(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=lustre_dissect_struct_obd_dqinfo(tvb,offset,pinfo,tree,hf_lustre_obd_quotactl_qc_dqinfo); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create_cr_padding_4); + return offset; } int -lustre_dissect_struct_obd_quotactl(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) +lustre_dissect_struct_mdt_rec_create(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) { proto_item *item = NULL; proto_tree *tree = NULL; int old_offset; + guint32 cr_opcode ; + + old_offset=offset; if (parent_tree) { item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, TRUE); - tree = proto_item_add_subtree(item, ett_lustre_obd_quotactl); + tree = proto_item_add_subtree(item, ett_lustre_mdt_rec_create); } + cr_opcode=tvb_get_letohl(tvb,offset); + display_info_fstr(parent_tree->parent, pinfo->cinfo, COL_INFO, "[%s]", val_to_str(cr_opcode, lustre_mds_reint_t_vals, "Unknown cr_opc")); - offset=lustre_dissect_element_obd_quotactl_qc_cmd(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_create_cr_opcode(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_obd_quotactl_qc_type(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_create_cr_cap(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_obd_quotactl_qc_id(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_create_cr_fsuid(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_obd_quotactl_qc_stat(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_create_cr_fsuid_h(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_obd_quotactl_qc_dqinfo(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_create_cr_fsgid(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_obd_quotactl_qc_dqblk(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_create_cr_fsgid_h(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_create_cr_suppgid1(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_create_cr_suppgid1_h(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_create_cr_suppgid2(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_create_cr_suppgid2_h(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_create_cr_fid1(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_create_cr_fid2(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_create_cr_old_handle(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_create_cr_time(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_create_cr_rdev(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_create_cr_ioepoch(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_create_cr_padding_1(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_create_cr_mode(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_create_cr_bias(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_create_cr_flags_l(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_create_cr_flags_h(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_create_cr_padding_3(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_create_cr_padding_4(tvb, offset, pinfo, tree); proto_item_set_len(item, offset-old_offset); + return offset; } - -/* IDL: struct quota_adjust_qunit { */ -/* IDL: uint32 qaq_flags; */ -/* IDL: uint32 qaq_id; */ -/* IDL: uint64 qaq_bunit_sz; */ -/* IDL: uint64 qaq_iunit_sz; */ -/* IDL: uint64 padding1; */ +/* TODO : find where this structure appear ! */ +/* IDL: struct mdt_rec_link { */ +/* IDL: uint32 lk_opcode; */ +/* IDL: uint32 lk_cap; */ +/* IDL: uint32 lk_fsuid; */ +/* IDL: uint32 lk_fsuid_h; */ +/* IDL: uint32 lk_fsgid; */ +/* IDL: uint32 lk_fsgid_h; */ +/* IDL: uint32 lk_suppgid1; */ +/* IDL: uint32 lk_suppgid1_h; */ +/* IDL: uint32 lk_suppgid2; */ +/* IDL: uint32 lk_suppgid2_h; */ +/* IDL: struct lu_fid { */ +/* IDL: } lk_fid1; */ +/* IDL: struct lu_fid { */ +/* IDL: } lk_fid2; */ +/* IDL: uint64 lk_time; */ +/* IDL: uint64 lk_padding_1; */ +/* IDL: uint64 lk_padding_2; */ +/* IDL: uint64 lk_padding_3; */ +/* IDL: uint64 lk_padding_4; */ +/* IDL: uint32 lk_bias; */ +/* IDL: uint32 lk_padding_5; */ +/* IDL: uint32 lk_padding_6; */ +/* IDL: uint32 lk_padding_7; */ +/* IDL: uint32 lk_padding_8; */ +/* IDL: uint32 lk_padding_9; */ /* IDL: } */ static int -lustre_dissect_element_quota_adjust_qunit_qaq_flags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_opcode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_quota_adjust_qunit_qaq_flags); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_opcode); return offset; } static int -lustre_dissect_element_quota_adjust_qunit_qaq_id(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_cap(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_quota_adjust_qunit_qaq_id); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_cap); return offset; } static int -lustre_dissect_element_quota_adjust_qunit_qaq_bunit_sz(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_fsuid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_quota_adjust_qunit_qaq_bunit_sz); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_fsuid); return offset; } static int -lustre_dissect_element_quota_adjust_qunit_qaq_iunit_sz(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_fsuid_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_quota_adjust_qunit_qaq_iunit_sz); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_fsuid_h); return offset; } static int -lustre_dissect_element_quota_adjust_qunit_padding1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_fsgid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_quota_adjust_qunit_padding1); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_fsgid); return offset; } -int -lustre_dissect_struct_quota_adjust_qunit(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) +static int +lustre_dissect_element_mdt_rec_link_lk_fsgid_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - proto_item *item = NULL; - proto_tree *tree = NULL; - int old_offset; - - - - old_offset=offset; - - if (parent_tree) { - item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, TRUE); - tree = proto_item_add_subtree(item, ett_lustre_quota_adjust_qunit); - } - - offset=lustre_dissect_element_quota_adjust_qunit_qaq_flags(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_quota_adjust_qunit_qaq_id(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_quota_adjust_qunit_qaq_bunit_sz(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_quota_adjust_qunit_qaq_iunit_sz(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_quota_adjust_qunit_padding1(tvb, offset, pinfo, tree); - - - proto_item_set_len(item, offset-old_offset); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_fsgid_h); return offset; } -/* I don't find where this struct appear on wire.. need to search mdc_setattr_pack() */ -/* IDL: struct mds_rec_setattr { */ -/* IDL: uint32 sa_opcode; */ -/* IDL: uint32 sa_fsuid; */ -/* IDL: uint32 sa_fsgid; */ -/* IDL: uint32 sa_cap; */ -/* IDL: uint32 sa_suppgid; */ -/* IDL: uint32 sa_mode; */ -/* IDL: struct ll_fid { */ -/* IDL: } sa_fid; */ -/* IDL: uint64 sa_valid; */ -/* IDL: uint64 sa_size; */ -/* IDL: uint64 sa_mtime; */ -/* IDL: uint64 sa_atime; */ -/* IDL: uint64 sa_ctime; */ -/* IDL: uint32 sa_uid; */ -/* IDL: uint32 sa_gid; */ -/* IDL: uint32 sa_attr_flags; */ -/* IDL: uint32 sa_padding; */ -/* IDL: } */ - static int -lustre_dissect_element_mds_rec_setattr_sa_opcode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_suppgid1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_setattr_sa_opcode); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_suppgid1); return offset; } static int -lustre_dissect_element_mds_rec_setattr_sa_fsuid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_suppgid1_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_setattr_sa_fsuid); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_suppgid1_h); return offset; } static int -lustre_dissect_element_mds_rec_setattr_sa_fsgid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_suppgid2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_setattr_sa_fsgid); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_suppgid2); return offset; } static int -lustre_dissect_element_mds_rec_setattr_sa_cap(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_suppgid2_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_setattr_sa_cap); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_suppgid2_h); return offset; } static int -lustre_dissect_element_mds_rec_setattr_sa_suppgid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_fid1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_setattr_sa_suppgid); - + offset=lustre_dissect_struct_lu_fid(tvb,offset,pinfo,tree,hf_lustre_mdt_rec_link_lk_fid1); return offset; } static int -lustre_dissect_element_mds_rec_setattr_sa_mode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_fid2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_setattr_sa_mode); + offset=lustre_dissect_struct_lu_fid(tvb,offset,pinfo,tree,hf_lustre_mdt_rec_link_lk_fid2); + return offset; +} +static int +lustre_dissect_element_mdt_rec_link_lk_time(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + nstime_t ns; + /* timestamp */ + ns.secs = tvb_get_letohl(tvb,offset); + ns.nsecs=0; + proto_tree_add_time(tree, hf_lustre_mdt_rec_link_lk_time, tvb, offset, 8, &ns ); + offset+=8; return offset; } static int -lustre_dissect_element_mds_rec_setattr_sa_fid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_padding_1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - //offset=lustre_dissect_struct_HASH(0x85af8d0)(tvb,offset,pinfo,tree,hf_lustre_mds_rec_setattr_sa_fid); - + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_padding_1); + return offset; } static int -lustre_dissect_element_mds_rec_setattr_sa_valid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_padding_2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mds_rec_setattr_sa_valid); + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_padding_2); return offset; } static int -lustre_dissect_element_mds_rec_setattr_sa_size(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_padding_3(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mds_rec_setattr_sa_size); + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_padding_3); return offset; } static int -lustre_dissect_element_mds_rec_setattr_sa_mtime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_padding_4(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - - nstime_t ns; - /* timestamp */ - ns.secs = tvb_get_letohl(tvb,offset); - ns.nsecs=0; - proto_tree_add_time(tree, hf_lustre_mds_rec_setattr_sa_mtime, tvb, offset, 8, &ns ); - offset+=8; + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_padding_4); + return offset; } static int -lustre_dissect_element_mds_rec_setattr_sa_atime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_bias(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - nstime_t ns; - /* timestamp */ - ns.secs = tvb_get_letohl(tvb,offset); - ns.nsecs=0; - proto_tree_add_time(tree, hf_lustre_mds_rec_setattr_sa_atime, tvb, offset, 8, &ns ); - offset+=8; + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_bias); + return offset; } static int -lustre_dissect_element_mds_rec_setattr_sa_ctime(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_padding_5(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - nstime_t ns; - /* timestamp */ - ns.secs = tvb_get_letohl(tvb,offset); - ns.nsecs=0; - proto_tree_add_time(tree, hf_lustre_mds_rec_setattr_sa_ctime, tvb, offset, 8, &ns ); - offset+=8; + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_padding_5); + return offset; } static int -lustre_dissect_element_mds_rec_setattr_sa_uid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_padding_6(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_setattr_sa_uid); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_padding_6); return offset; } static int -lustre_dissect_element_mds_rec_setattr_sa_gid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_padding_7(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_setattr_sa_gid); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_padding_7); return offset; } static int -lustre_dissect_element_mds_rec_setattr_sa_attr_flags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_padding_8(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_setattr_sa_attr_flags); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_padding_8); return offset; } static int -lustre_dissect_element_mds_rec_setattr_sa_padding(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_link_lk_padding_9(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_setattr_sa_padding); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link_lk_padding_9); return offset; } int -lustre_dissect_struct_mds_rec_setattr(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) +lustre_dissect_struct_mdt_rec_link(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) { proto_item *item = NULL; proto_tree *tree = NULL; int old_offset; - guint32 sa_opcode ; + guint32 lk_opcode ; old_offset=offset; if (parent_tree) { item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, TRUE); - tree = proto_item_add_subtree(item, ett_lustre_mds_rec_setattr); + tree = proto_item_add_subtree(item, ett_lustre_mdt_rec_link); } - sa_opcode=tvb_get_letohl(tvb,offset); - display_info_fstr(parent_tree->parent, pinfo->cinfo, COL_INFO, "[%s]", val_to_str(sa_opcode, lustre_mds_reint_t_vals, "Unknown sa_opc")); + lk_opcode=tvb_get_letohl(tvb,offset); + display_info_fstr(parent_tree->parent, pinfo->cinfo, COL_INFO, "[%s]", val_to_str(lk_opcode, lustre_mds_reint_t_vals, "Unknown lk_opc")); - offset=lustre_dissect_element_mds_rec_setattr_sa_opcode(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_link_lk_opcode(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_setattr_sa_fsuid(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_link_lk_cap(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_setattr_sa_fsgid(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_link_lk_fsuid(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_setattr_sa_cap(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_link_lk_fsuid_h(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_setattr_sa_suppgid(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_link_lk_fsgid(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_setattr_sa_mode(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_link_lk_fsgid_h(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_setattr_sa_fid(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_link_lk_suppgid1(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_setattr_sa_valid(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_link_lk_suppgid1_h(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_setattr_sa_size(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_link_lk_suppgid2(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_setattr_sa_mtime(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_link_lk_suppgid2_h(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_setattr_sa_atime(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_link_lk_fid1(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_setattr_sa_ctime(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_link_lk_fid2(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_setattr_sa_uid(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_link_lk_time(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_setattr_sa_gid(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_link_lk_padding_1(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_setattr_sa_attr_flags(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_link_lk_padding_2(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_setattr_sa_padding(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_link_lk_padding_3(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_link_lk_padding_4(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_link_lk_bias(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_link_lk_padding_5(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_link_lk_padding_6(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_link_lk_padding_7(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_link_lk_padding_8(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_link_lk_padding_9(tvb, offset, pinfo, tree); proto_item_set_len(item, offset-old_offset); @@ -3076,744 +3867,871 @@ lustre_dissect_struct_mds_rec_setattr(tvbuff_t *tvb _U_, int offset _U_, packet_ return offset; } - -/* IDL: struct mds_rec_create { */ -/* IDL: uint32 cr_opcode; */ -/* IDL: uint32 cr_fsuid; */ -/* IDL: uint32 cr_fsgid; */ -/* IDL: uint32 cr_cap; */ -/* IDL: uint32 cr_flags; */ -/* IDL: uint32 cr_mode; */ -/* IDL: struct ll_fid { */ -/* IDL: } cr_fid; */ -/* IDL: struct ll_fid { */ -/* IDL: } cr_replayfid; */ -/* IDL: uint64 cr_time; */ -/* IDL: uint64 cr_rdev; */ -/* IDL: uint32 cr_suppgid; */ -/* IDL: uint32 cr_padding_1; */ -/* IDL: uint32 cr_padding_2; */ -/* IDL: uint32 cr_padding_3; */ -/* IDL: uint32 cr_padding_4; */ -/* IDL: uint32 cr_padding_5; */ +/* IDL: struct mdt_rec_unlink { */ +/* IDL: uint32 ul_opcode; */ +/* IDL: uint32 ul_cap; */ +/* IDL: uint32 ul_fsuid; */ +/* IDL: uint32 ul_fsuid_h; */ +/* IDL: uint32 ul_fsgid; */ +/* IDL: uint32 ul_fsgid_h; */ +/* IDL: uint32 ul_suppgid1; */ +/* IDL: uint32 ul_suppgid1_h; */ +/* IDL: uint32 ul_suppgid2; */ +/* IDL: uint32 ul_suppgid2_h; */ +/* IDL: struct lu_fid { */ +/* IDL: } ul_fid1; */ +/* IDL: struct lu_fid { */ +/* IDL: } ul_fid2; */ +/* IDL: uint64 ul_time; */ +/* IDL: uint64 ul_padding_2; */ +/* IDL: uint64 ul_padding_3; */ +/* IDL: uint64 ul_padding_4; */ +/* IDL: uint64 ul_padding_5; */ +/* IDL: uint32 ul_bias; */ +/* IDL: uint32 ul_mode; */ +/* IDL: uint32 ul_padding_6; */ +/* IDL: uint32 ul_padding_7; */ +/* IDL: uint32 ul_padding_8; */ +/* IDL: uint32 ul_padding_9; */ /* IDL: } */ static int -lustre_dissect_element_mds_rec_create_cr_opcode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_unlink_ul_opcode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_opcode); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_unlink_ul_cap(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_cap); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_unlink_ul_fsuid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_fsuid); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_unlink_ul_fsuid_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_fsuid_h); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_unlink_ul_fsgid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_fsgid); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_unlink_ul_fsgid_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_create_cr_opcode); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_fsgid_h); return offset; } static int -lustre_dissect_element_mds_rec_create_cr_fsuid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_unlink_ul_suppgid1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_create_cr_fsuid); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_suppgid1); return offset; } static int -lustre_dissect_element_mds_rec_create_cr_fsgid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_unlink_ul_suppgid1_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_create_cr_fsgid); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_suppgid1_h); return offset; } static int -lustre_dissect_element_mds_rec_create_cr_cap(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_unlink_ul_suppgid2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_create_cr_cap); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_suppgid2); return offset; } static int -lustre_dissect_element_mds_rec_create_cr_flags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_unlink_ul_suppgid2_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_create_cr_flags); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_suppgid2_h); + + return offset; +} +static int +lustre_dissect_element_mdt_rec_unlink_ul_fid1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=lustre_dissect_struct_lu_fid(tvb,offset,pinfo,tree,hf_lustre_mdt_rec_unlink_ul_fid1); return offset; } static int -lustre_dissect_element_mds_rec_create_cr_mode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_unlink_ul_fid2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_create_cr_mode); + offset=lustre_dissect_struct_lu_fid(tvb,offset,pinfo,tree,hf_lustre_mdt_rec_unlink_ul_fid2); + return offset; +} +static int +lustre_dissect_element_mdt_rec_unlink_ul_time(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + nstime_t ns; + /* timestamp */ + ns.secs = tvb_get_letohl(tvb,offset); + ns.nsecs=0; + proto_tree_add_time(tree,hf_lustre_mdt_rec_unlink_ul_time , tvb, offset, 8, &ns ); + offset+=8; return offset; } static int -lustre_dissect_element_mds_rec_create_cr_fid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_unlink_ul_padding_2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=lustre_dissect_struct_ll_fid(tvb,offset,pinfo,tree,hf_lustre_mds_rec_create_cr_fid); + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_padding_2); + return offset; } static int -lustre_dissect_element_mds_rec_create_cr_replayfid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_unlink_ul_padding_3(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=lustre_dissect_struct_ll_fid(tvb,offset,pinfo,tree,hf_lustre_mds_rec_create_cr_replayfid); + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_padding_3); + return offset; } static int -lustre_dissect_element_mds_rec_create_cr_time(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_unlink_ul_padding_4(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - nstime_t ns; - /* timestamp */ - ns.secs = tvb_get_letohl(tvb,offset); - ns.nsecs=0; - proto_tree_add_time(tree, hf_lustre_mds_rec_create_cr_time, tvb, offset, 8, &ns ); - offset+=8; - return offset; + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_padding_4); + return offset; } static int -lustre_dissect_element_mds_rec_create_cr_rdev(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_unlink_ul_padding_5(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mds_rec_create_cr_rdev); + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_padding_5); return offset; } static int -lustre_dissect_element_mds_rec_create_cr_suppgid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_unlink_ul_bias(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_create_cr_suppgid); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_bias); return offset; } static int -lustre_dissect_element_mds_rec_create_cr_padding_1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_unlink_ul_mode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_create_cr_padding_1); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_mode); return offset; } static int -lustre_dissect_element_mds_rec_create_cr_padding_2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_unlink_ul_padding_6(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_create_cr_padding_2); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_padding_6); return offset; } static int -lustre_dissect_element_mds_rec_create_cr_padding_3(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_unlink_ul_padding_7(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_create_cr_padding_3); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_padding_7); return offset; } static int -lustre_dissect_element_mds_rec_create_cr_padding_4(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_unlink_ul_padding_8(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_create_cr_padding_4); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_padding_8); return offset; } static int -lustre_dissect_element_mds_rec_create_cr_padding_5(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_unlink_ul_padding_9(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_create_cr_padding_5); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink_ul_padding_9); return offset; } int -lustre_dissect_struct_mds_rec_create(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) +lustre_dissect_struct_mdt_rec_unlink(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) { proto_item *item = NULL; proto_tree *tree = NULL; int old_offset; - guint32 cr_opcode ; + guint32 ul_opcode ; old_offset=offset; if (parent_tree) { item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, TRUE); - tree = proto_item_add_subtree(item, ett_lustre_mds_rec_create); + tree = proto_item_add_subtree(item, ett_lustre_mdt_rec_unlink); } - cr_opcode=tvb_get_letohl(tvb,offset); - display_info_fstr(parent_tree->parent, pinfo->cinfo, COL_INFO, "[%s]", val_to_str(cr_opcode, lustre_mds_reint_t_vals, "Unknown cr_opc")); - offset=lustre_dissect_element_mds_rec_create_cr_opcode(tvb, offset, pinfo, tree); + ul_opcode=tvb_get_letohl(tvb,offset); + display_info_fstr(parent_tree->parent, pinfo->cinfo, COL_INFO, "[%s]", val_to_str(ul_opcode, lustre_mds_reint_t_vals, "Unknown ul_opc")); - offset=lustre_dissect_element_mds_rec_create_cr_fsuid(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_unlink_ul_opcode(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_create_cr_fsgid(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_unlink_ul_cap(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_create_cr_cap(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_unlink_ul_fsuid(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_create_cr_flags(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_unlink_ul_fsuid_h(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_create_cr_mode(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_unlink_ul_fsgid(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_create_cr_fid(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_unlink_ul_fsgid_h(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_create_cr_replayfid(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_unlink_ul_suppgid1(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_create_cr_time(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_unlink_ul_suppgid1_h(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_create_cr_rdev(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_unlink_ul_suppgid2(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_create_cr_suppgid(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_unlink_ul_suppgid2_h(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_create_cr_padding_1(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_unlink_ul_fid1(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_create_cr_padding_2(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_unlink_ul_fid2(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_create_cr_padding_3(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_unlink_ul_time(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_create_cr_padding_4(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_unlink_ul_padding_2(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_create_cr_padding_5(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_unlink_ul_padding_3(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_unlink_ul_padding_4(tvb, offset, pinfo, tree); - proto_item_set_len(item, offset-old_offset); + offset=lustre_dissect_element_mdt_rec_unlink_ul_padding_5(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_unlink_ul_bias(tvb, offset, pinfo, tree); - return offset; -} + offset=lustre_dissect_element_mdt_rec_unlink_ul_mode(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_unlink_ul_padding_6(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_unlink_ul_padding_7(tvb, offset, pinfo, tree); -/* TODO : find where this structure appear ! */ -/* IDL: struct mds_rec_link { */ -/* IDL: uint32 lk_opcode; */ -/* IDL: uint32 lk_fsuid; */ -/* IDL: uint32 lk_fsgid; */ -/* IDL: uint32 lk_cap; */ -/* IDL: uint32 lk_suppgid1; */ -/* IDL: uint32 lk_suppgid2; */ + offset=lustre_dissect_element_mdt_rec_unlink_ul_padding_8(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_unlink_ul_padding_9(tvb, offset, pinfo, tree); + + + proto_item_set_len(item, offset-old_offset); + + return offset; +} + +/* IDL: struct mdt_rec_rename { */ +/* IDL: uint32 rn_opcode; */ +/* IDL: uint32 rn_fsuid; */ +/* IDL: uint32 rn_fsgid; */ +/* IDL: uint32 rn_cap; */ +/* IDL: uint32 rn_suppgid1; */ +/* IDL: uint32 rn_suppgid2; */ /* IDL: struct ll_fid { */ -/* IDL: } lk_fid1; */ +/* IDL: } rn_fid1; */ /* IDL: struct ll_fid { */ -/* IDL: } lk_fid2; */ -/* IDL: uint64 lk_time; */ -/* IDL: uint32 lk_padding_1; */ -/* IDL: uint32 lk_padding_2; */ -/* IDL: uint32 lk_padding_3; */ -/* IDL: uint32 lk_padding_4; */ +/* IDL: } rn_fid2; */ +/* IDL: uint64 rn_time; */ +/* IDL: uint32 rn_padding_1; */ +/* IDL: uint32 rn_padding_2; */ +/* IDL: uint32 rn_padding_3; */ +/* IDL: uint32 rn_padding_4; */ /* IDL: } */ static int -lustre_dissect_element_mds_rec_link_lk_opcode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_rename_rn_opcode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_opcode); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_rename_rn_cap(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_cap); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_rename_rn_fsuid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_fsuid); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_rename_rn_fsuid_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_fsuid_h); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_rename_rn_fsgid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_link_lk_opcode); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_fsgid); return offset; } static int -lustre_dissect_element_mds_rec_link_lk_fsuid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_rename_rn_fsgid_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_link_lk_fsuid); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_fsgid_h); return offset; } static int -lustre_dissect_element_mds_rec_link_lk_fsgid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_rename_rn_suppgid1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_link_lk_fsgid); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_suppgid1); return offset; } static int -lustre_dissect_element_mds_rec_link_lk_cap(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_rename_rn_suppgid1_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_link_lk_cap); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_suppgid1_h); return offset; } static int -lustre_dissect_element_mds_rec_link_lk_suppgid1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_rename_rn_suppgid2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_link_lk_suppgid1); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_suppgid2); return offset; } static int -lustre_dissect_element_mds_rec_link_lk_suppgid2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_rename_rn_suppgid2_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_link_lk_suppgid2); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_suppgid2_h); return offset; } static int -lustre_dissect_element_mds_rec_link_lk_fid1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_rename_rn_fid1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=lustre_dissect_struct_ll_fid(tvb,offset,pinfo,tree,hf_lustre_mds_rec_link_lk_fid1); + offset=lustre_dissect_struct_lu_fid(tvb,offset,pinfo,tree,hf_lustre_mdt_rec_rename_rn_fid1); return offset; } static int -lustre_dissect_element_mds_rec_link_lk_fid2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_rename_rn_fid2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=lustre_dissect_struct_ll_fid(tvb,offset,pinfo,tree,hf_lustre_mds_rec_link_lk_fid2); + offset=lustre_dissect_struct_lu_fid(tvb,offset,pinfo,tree,hf_lustre_mdt_rec_rename_rn_fid2); return offset; } static int -lustre_dissect_element_mds_rec_link_lk_time(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_rename_rn_time(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { nstime_t ns; /* timestamp */ ns.secs = tvb_get_letohl(tvb,offset); ns.nsecs=0; - proto_tree_add_time(tree, hf_lustre_mds_rec_link_lk_time, tvb, offset, 8, &ns ); + proto_tree_add_time(tree, hf_lustre_mdt_rec_rename_rn_time, tvb, offset, 8, &ns ); offset+=8; return offset; } static int -lustre_dissect_element_mds_rec_link_lk_padding_1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_rename_rn_padding_1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_padding_1); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_rename_rn_padding_2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_padding_2); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_rename_rn_padding_3(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_padding_3); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_rename_rn_padding_4(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_padding_4); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_rename_rn_bias(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_link_lk_padding_1); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_bias); return offset; } static int -lustre_dissect_element_mds_rec_link_lk_padding_2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_rename_rn_mode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_link_lk_padding_2); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_mode); return offset; } static int -lustre_dissect_element_mds_rec_link_lk_padding_3(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_rename_rn_padding_5(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_link_lk_padding_3); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_padding_5); return offset; } static int -lustre_dissect_element_mds_rec_link_lk_padding_4(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_rename_rn_padding_6(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_link_lk_padding_4); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_padding_6); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_rename_rn_padding_7(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_padding_7); + + return offset; +} + +static int +lustre_dissect_element_mdt_rec_rename_rn_padding_8(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +{ + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename_rn_padding_8); return offset; } int -lustre_dissect_struct_mds_rec_link(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) +lustre_dissect_struct_mdt_rec_rename(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) { proto_item *item = NULL; proto_tree *tree = NULL; int old_offset; - guint32 lk_opcode ; + guint32 rn_opcode ; old_offset=offset; if (parent_tree) { item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, TRUE); - tree = proto_item_add_subtree(item, ett_lustre_mds_rec_link); + tree = proto_item_add_subtree(item, ett_lustre_mdt_rec_rename); } - lk_opcode=tvb_get_letohl(tvb,offset); - display_info_fstr(parent_tree->parent, pinfo->cinfo, COL_INFO, "[%s]", val_to_str(lk_opcode, lustre_mds_reint_t_vals, "Unknown lk_opc")); - offset=lustre_dissect_element_mds_rec_link_lk_opcode(tvb, offset, pinfo, tree); + rn_opcode=tvb_get_letohl(tvb,offset); + display_info_fstr(parent_tree->parent, pinfo->cinfo, COL_INFO, "[%s]", val_to_str(rn_opcode, lustre_mds_reint_t_vals, "Unknown rn_opc")); - offset=lustre_dissect_element_mds_rec_link_lk_fsuid(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_rename_rn_opcode(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_link_lk_fsgid(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_rename_rn_cap(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_link_lk_cap(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_rename_rn_fsuid(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_link_lk_suppgid1(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_rename_rn_fsuid_h(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_link_lk_suppgid2(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_rename_rn_fsgid(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_link_lk_fid1(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_rename_rn_fsgid_h(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_link_lk_fid2(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_rename_rn_suppgid1(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_link_lk_time(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_rename_rn_suppgid1_h(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_link_lk_padding_1(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_rename_rn_suppgid2(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_link_lk_padding_2(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_rename_rn_suppgid2_h(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_link_lk_padding_3(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_rename_rn_fid1(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_link_lk_padding_4(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_rename_rn_fid2(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_rename_rn_time(tvb, offset, pinfo, tree); - proto_item_set_len(item, offset-old_offset); + offset=lustre_dissect_element_mdt_rec_rename_rn_padding_1(tvb, offset, pinfo, tree); - return offset; -} + offset=lustre_dissect_element_mdt_rec_rename_rn_padding_2(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_rename_rn_padding_3(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_rename_rn_padding_4(tvb, offset, pinfo, tree); -/* IDL: struct mds_rec_unlink { */ -/* IDL: uint32 ul_opcode; */ -/* IDL: uint32 ul_fsuid; */ -/* IDL: uint32 ul_fsgid; */ -/* IDL: uint32 ul_cap; */ -/* IDL: uint32 ul_suppgid; */ -/* IDL: uint32 ul_mode; */ -/* IDL: struct ll_fid { */ -/* IDL: } ul_fid1; */ -/* IDL: struct ll_fid { */ -/* IDL: } ul_fid2; */ -/* IDL: uint64 ul_time; */ -/* IDL: uint32 ul_padding_1; */ -/* IDL: uint32 ul_padding_2; */ -/* IDL: uint32 ul_padding_3; */ -/* IDL: uint32 ul_padding_4; */ -/* IDL: } */ + offset=lustre_dissect_element_mdt_rec_rename_rn_bias(tvb, offset, pinfo, tree); -static int -lustre_dissect_element_mds_rec_unlink_ul_opcode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) -{ - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_unlink_ul_opcode); + offset=lustre_dissect_element_mdt_rec_rename_rn_mode(tvb, offset, pinfo, tree); - return offset; -} + offset=lustre_dissect_element_mdt_rec_rename_rn_padding_5(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_rename_rn_padding_6(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_rename_rn_padding_7(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_rename_rn_padding_8(tvb, offset, pinfo, tree); -static int -lustre_dissect_element_mds_rec_unlink_ul_fsuid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) -{ - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_unlink_ul_fsuid); + + proto_item_set_len(item, offset-old_offset); return offset; } +/* I don't find where this struct appear on wire.. need to search mdc_setxattr_pack() */ +/* IDL: struct mdt_rec_setxattr { */ +/* IDL: uint32 sx_opcode; */ +/* IDL: uint32 sx_cap; */ +/* IDL: uint32 sx_fsuid; */ +/* IDL: uint32 sx_fsuid_h; */ +/* IDL: uint32 sx_fsgid; */ +/* IDL: uint32 sx_fsgid_h; */ +/* IDL: uint32 sx_suppgid1; */ +/* IDL: uint32 sx_suppgid1_h; */ +/* IDL: uint32 sx_suppgid2; */ +/* IDL: uint32 sx_suppgid2_h; */ +/* IDL: struct lu_fid { */ +/* IDL: } sx_fid; */ +/* IDL: uint64 sx_padding_1; */ +/* IDL: uint32 sx_padding_2; */ +/* IDL: uint32 sx_padding_3; */ +/* IDL: uint64 sx_valid; */ +/* IDL: uint64 sx_time; */ +/* IDL: uint64 sx_padding_5; */ +/* IDL: uint64 sx_padding_6; */ +/* IDL: uint64 sx_padding_7; */ +/* IDL: uint32 sx_size; */ +/* IDL: uint32 sx_flags; */ +/* IDL: uint32 sx_padding_8; */ +/* IDL: uint32 sx_padding_9; */ +/* IDL: uint32 sx_padding_10; */ +/* IDL: uint32 sx_padding_11; */ +/* IDL: } */ + static int -lustre_dissect_element_mds_rec_unlink_ul_fsgid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_opcode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_unlink_ul_fsgid); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_opcode); return offset; } static int -lustre_dissect_element_mds_rec_unlink_ul_cap(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_cap(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_unlink_ul_cap); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_cap); return offset; } static int -lustre_dissect_element_mds_rec_unlink_ul_suppgid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_fsuid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_unlink_ul_suppgid); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_fsuid); return offset; } static int -lustre_dissect_element_mds_rec_unlink_ul_mode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_fsuid_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_unlink_ul_mode); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_fsuid_h); return offset; } static int -lustre_dissect_element_mds_rec_unlink_ul_fid1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_fsgid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=lustre_dissect_struct_ll_fid(tvb,offset,pinfo,tree,hf_lustre_mds_rec_unlink_ul_fid1); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_fsgid); + return offset; } static int -lustre_dissect_element_mds_rec_unlink_ul_fid2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_fsgid_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=lustre_dissect_struct_ll_fid(tvb,offset,pinfo,tree,hf_lustre_mds_rec_unlink_ul_fid2); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_fsgid_h); + return offset; } static int -lustre_dissect_element_mds_rec_unlink_ul_time(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_suppgid1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - nstime_t ns; - /* timestamp */ - ns.secs = tvb_get_letohl(tvb,offset); - ns.nsecs=0; - proto_tree_add_time(tree,hf_lustre_mds_rec_unlink_ul_time , tvb, offset, 8, &ns ); - offset+=8; + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_suppgid1); + return offset; } static int -lustre_dissect_element_mds_rec_unlink_ul_padding_1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_suppgid1_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_unlink_ul_padding_1); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_suppgid1_h); return offset; } static int -lustre_dissect_element_mds_rec_unlink_ul_padding_2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_suppgid2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_unlink_ul_padding_2); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_suppgid2); return offset; } static int -lustre_dissect_element_mds_rec_unlink_ul_padding_3(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_suppgid2_h(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_unlink_ul_padding_3); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_suppgid2_h); return offset; } static int -lustre_dissect_element_mds_rec_unlink_ul_padding_4(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_fid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_unlink_ul_padding_4); + offset=lustre_dissect_struct_lu_fid(tvb,offset,pinfo,tree,hf_lustre_mdt_rec_setxattr_sx_fid); return offset; } -int -lustre_dissect_struct_mds_rec_unlink(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) +static int +lustre_dissect_element_mdt_rec_setxattr_sx_padding_1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - proto_item *item = NULL; - proto_tree *tree = NULL; - int old_offset; - - guint32 ul_opcode ; - - - old_offset=offset; - - if (parent_tree) { - item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, TRUE); - tree = proto_item_add_subtree(item, ett_lustre_mds_rec_unlink); - } - - ul_opcode=tvb_get_letohl(tvb,offset); - display_info_fstr(parent_tree->parent, pinfo->cinfo, COL_INFO, "[%s]", val_to_str(ul_opcode, lustre_mds_reint_t_vals, "Unknown ul_opc")); - - offset=lustre_dissect_element_mds_rec_unlink_ul_opcode(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_rec_unlink_ul_fsuid(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_rec_unlink_ul_fsgid(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_rec_unlink_ul_cap(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_rec_unlink_ul_suppgid(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_rec_unlink_ul_mode(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_rec_unlink_ul_fid1(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_rec_unlink_ul_fid2(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_rec_unlink_ul_time(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_rec_unlink_ul_padding_1(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_rec_unlink_ul_padding_2(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_rec_unlink_ul_padding_3(tvb, offset, pinfo, tree); - - offset=lustre_dissect_element_mds_rec_unlink_ul_padding_4(tvb, offset, pinfo, tree); - - - proto_item_set_len(item, offset-old_offset); + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_padding_1); return offset; } - - -/* IDL: struct mds_rec_rename { */ -/* IDL: uint32 rn_opcode; */ -/* IDL: uint32 rn_fsuid; */ -/* IDL: uint32 rn_fsgid; */ -/* IDL: uint32 rn_cap; */ -/* IDL: uint32 rn_suppgid1; */ -/* IDL: uint32 rn_suppgid2; */ -/* IDL: struct ll_fid { */ -/* IDL: } rn_fid1; */ -/* IDL: struct ll_fid { */ -/* IDL: } rn_fid2; */ -/* IDL: uint64 rn_time; */ -/* IDL: uint32 rn_padding_1; */ -/* IDL: uint32 rn_padding_2; */ -/* IDL: uint32 rn_padding_3; */ -/* IDL: uint32 rn_padding_4; */ -/* IDL: } */ - static int -lustre_dissect_element_mds_rec_rename_rn_opcode(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_padding_2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_rename_rn_opcode); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_padding_2); return offset; } static int -lustre_dissect_element_mds_rec_rename_rn_fsuid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_padding_3(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_rename_rn_fsuid); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_padding_3); return offset; } static int -lustre_dissect_element_mds_rec_rename_rn_fsgid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_valid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_rename_rn_fsgid); + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_valid); return offset; } static int -lustre_dissect_element_mds_rec_rename_rn_cap(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_time(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_rename_rn_cap); + nstime_t ns; + /* timestamp */ + ns.secs = tvb_get_letohl(tvb,offset); + ns.nsecs=0; + proto_tree_add_time(tree, hf_lustre_mdt_rec_setxattr_sx_time, tvb, offset, 8, &ns ); + offset+=8; return offset; } static int -lustre_dissect_element_mds_rec_rename_rn_suppgid1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_padding_5(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_rename_rn_suppgid1); + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_padding_5); return offset; } static int -lustre_dissect_element_mds_rec_rename_rn_suppgid2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_padding_6(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_rename_rn_suppgid2); + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_padding_6); return offset; } static int -lustre_dissect_element_mds_rec_rename_rn_fid1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_padding_7(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=lustre_dissect_struct_ll_fid(tvb,offset,pinfo,tree,hf_lustre_mds_rec_rename_rn_fid1); + offset=dissect_uint64(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_padding_7); + return offset; } static int -lustre_dissect_element_mds_rec_rename_rn_fid2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_size(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=lustre_dissect_struct_ll_fid(tvb,offset,pinfo,tree,hf_lustre_mds_rec_rename_rn_fid2); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_size); + return offset; } static int -lustre_dissect_element_mds_rec_rename_rn_time(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_flags(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - nstime_t ns; - /* timestamp */ - ns.secs = tvb_get_letohl(tvb,offset); - ns.nsecs=0; - proto_tree_add_time(tree, hf_lustre_mds_rec_rename_rn_time, tvb, offset, 8, &ns ); - offset+=8; + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_flags); + return offset; } static int -lustre_dissect_element_mds_rec_rename_rn_padding_1(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_padding_8(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_rename_rn_padding_1); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_padding_8); return offset; } static int -lustre_dissect_element_mds_rec_rename_rn_padding_2(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_padding_9(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_rename_rn_padding_2); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_padding_9); return offset; } static int -lustre_dissect_element_mds_rec_rename_rn_padding_3(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_padding_10(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_rename_rn_padding_3); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_padding_10); return offset; } static int -lustre_dissect_element_mds_rec_rename_rn_padding_4(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) +lustre_dissect_element_mdt_rec_setxattr_sx_padding_11(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mds_rec_rename_rn_padding_4); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr_sx_padding_11); return offset; } int -lustre_dissect_struct_mds_rec_rename(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) +lustre_dissect_struct_mdt_rec_setxattr(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_) { proto_item *item = NULL; proto_tree *tree = NULL; int old_offset; - guint32 rn_opcode ; + guint32 sx_opcode ; old_offset=offset; if (parent_tree) { item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, TRUE); - tree = proto_item_add_subtree(item, ett_lustre_mds_rec_rename); + tree = proto_item_add_subtree(item, ett_lustre_mdt_rec_setxattr); } + sx_opcode=tvb_get_letohl(tvb,offset); + display_info_fstr(parent_tree->parent, pinfo->cinfo, COL_INFO, "[%s]", val_to_str(sx_opcode, lustre_mds_reint_t_vals, "Unknown sx_opc")); - rn_opcode=tvb_get_letohl(tvb,offset); - display_info_fstr(parent_tree->parent, pinfo->cinfo, COL_INFO, "[%s]", val_to_str(rn_opcode, lustre_mds_reint_t_vals, "Unknown rn_opc")); + offset=lustre_dissect_element_mdt_rec_setxattr_sx_opcode(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setxattr_sx_cap(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setxattr_sx_fsuid(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setxattr_sx_fsuid_h(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setxattr_sx_fsgid(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setxattr_sx_fsgid_h(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setxattr_sx_suppgid1(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setxattr_sx_suppgid1_h(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setxattr_sx_suppgid2(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setxattr_sx_suppgid2_h(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_rename_rn_opcode(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_setxattr_sx_fid(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_rename_rn_fsuid(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_setxattr_sx_padding_1(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_rename_rn_fsgid(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_setxattr_sx_padding_2(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_rename_rn_cap(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_setxattr_sx_padding_3(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_rename_rn_suppgid1(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_setxattr_sx_valid(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_rename_rn_suppgid2(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_setxattr_sx_time(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_rename_rn_fid1(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_setxattr_sx_padding_5(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_rename_rn_fid2(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_setxattr_sx_padding_6(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_rename_rn_time(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_setxattr_sx_padding_7(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_rename_rn_padding_1(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_setxattr_sx_size(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_rename_rn_padding_2(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_setxattr_sx_flags(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_rename_rn_padding_3(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_setxattr_sx_padding_8(tvb, offset, pinfo, tree); - offset=lustre_dissect_element_mds_rec_rename_rn_padding_4(tvb, offset, pinfo, tree); + offset=lustre_dissect_element_mdt_rec_setxattr_sx_padding_9(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setxattr_sx_padding_10(tvb, offset, pinfo, tree); + + offset=lustre_dissect_element_mdt_rec_setxattr_sx_padding_11(tvb, offset, pinfo, tree); proto_item_set_len(item, offset-old_offset); @@ -4256,15 +5174,15 @@ lustre_dissect_element_ldlm_intent_opc(tvbuff_t *tvb _U_, int offset _U_, packet { guint32 opcode; /* this opcode is like a flag*/ - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_intent_opc_open ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_intent_opc_creat ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_intent_opc_readdir ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_intent_opc_getattr ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_intent_opc_lookup ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_intent_opc_unlink ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_intent_opc_getxattr); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_intent_opc_exec ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_intent_opc_pin ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_intent_opc_open ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_intent_opc_creat ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_intent_opc_readdir ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_intent_opc_getattr ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_intent_opc_lookup ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_intent_opc_unlink ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_intent_opc_getxattr); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_intent_opc_exec ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_intent_opc_pin ); opcode = tvb_get_letohl(tvb,offset); display_info_str(tree->parent, pinfo->cinfo, COL_INFO, "[ intent :"); @@ -4306,7 +5224,7 @@ lustre_dissect_element_ldlm_intent_opc(tvbuff_t *tvb _U_, int offset _U_, packet } display_info_str(tree->parent, pinfo->cinfo, COL_INFO, " ]"); - offset+=8; + offset+=8; return offset; } @@ -4444,7 +5362,7 @@ lustre_dissect_element_ldlm_lock_desc_l_policy_data(tvbuff_t *tvb _U_, int offse /* this section must be check with lustre code, possible mistake here */ switch(lr_type){ - case LDLM_PLAIN: + case LDLM_PLAIN: case LDLM_FLOCK: offset=lustre_dissect_struct_ldlm_flock(tvb,offset,pinfo,tree,hf_lustre_ldlm_lock_desc_l_policy_data); break; @@ -4561,7 +5479,7 @@ lustre_dissect_struct_ldlm_request(tvbuff_t *tvb _U_, int offset _U_, packet_inf proto_tree *tree = NULL; int old_offset; guint32 lock_flag ; - guint32 ldlm_type; + guint32 ldlm_type; old_offset=offset; @@ -4576,7 +5494,7 @@ lustre_dissect_struct_ldlm_request(tvbuff_t *tvb _U_, int offset _U_, packet_inf offset=lustre_dissect_element_ldlm_request_lock_count(tvb, offset, pinfo, tree); /* ldlm_type = (EXTENT, PLAIN, ou IBITS) */ - ldlm_type = tvb_get_letohl(tvb,offset); + ldlm_type = tvb_get_letohl(tvb,offset); offset=lustre_dissect_element_ldlm_request_lock_desc(tvb, offset, pinfo, tree); offset=lustre_dissect_element_ldlm_request_lock_handle(tvb, offset, pinfo, tree); @@ -4610,37 +5528,37 @@ lustre_dissect_element_ldlm_lock_flags(tvbuff_t *tvb _U_, int offset _U_, packet item = proto_tree_add_item(parent_tree,hf_index, tvb, offset, 4, TRUE); tree = proto_item_add_subtree(item, ett_lustre_ldlm_lock_flags); } - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_ast_discard_data); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_deny_on_contention); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_bl_done ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_bl_ast ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_atomic_cb ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_cleaned ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_cp_reqd ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_cancel_on_block ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_no_lru ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_kms_ignore ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_lvb_ready ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_test_lock ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_block_nowait ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_no_timeout ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_discard_data ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_warn ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_local ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_canceling ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_has_intent ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_failed ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_local_only ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_intent_only ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_replay ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_cancel ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_wait_noreproc ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_ast_sent ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_cbpending ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_block_wait ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_block_conv ); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_block_granted ); - offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_lock_changed ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_ast_discard_data); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_deny_on_contention); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_bl_done ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_bl_ast ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_atomic_cb ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_cleaned ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_cp_reqd ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_cancel_on_block ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_no_lru ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_kms_ignore ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_lvb_ready ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_test_lock ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_block_nowait ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_no_timeout ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_discard_data ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_warn ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_local ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_canceling ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_has_intent ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_failed ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_local_only ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_intent_only ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_replay ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_cancel ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_wait_noreproc ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_ast_sent ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_cbpending ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_block_wait ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_block_conv ); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_block_granted ); + offset=dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_ldlm_fl_lock_changed ); return offset; } @@ -4707,7 +5625,7 @@ lustre_dissect_struct_ldlm_reply(tvbuff_t *tvb _U_, int offset _U_, packet_info offset=lustre_dissect_element_ldlm_reply_lock_padding(tvb, offset, pinfo, tree); if (ldlm_type != NULL) - *ldlm_type = tvb_get_letohl(tvb,offset); + *ldlm_type = tvb_get_letohl(tvb,offset); offset=lustre_dissect_element_ldlm_reply_lock_desc(tvb, offset, pinfo, tree); offset=lustre_dissect_element_ldlm_reply_lock_handle(tvb, offset, pinfo, tree); @@ -5188,7 +6106,7 @@ static int lustre_dissect_element_llog_catid_lci_logid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { //offset=lustre_dissect_struct_HASH(0x85cc76c)(tvb,offset,pinfo,tree,hf_lustre_llog_catid_lci_logid); - + /*g_print("llog_catid_lci_logid bug\n");*/ return offset; } @@ -5492,7 +6410,7 @@ static int lustre_dissect_element_llog_create_rec_lcr_hdr(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { //offset=lustre_dissect_struct_HASH(0x85d56e0)(tvb,offset,pinfo,tree,hf_lustre_llog_create_rec_lcr_hdr); - + return offset; } @@ -5500,7 +6418,7 @@ static int lustre_dissect_element_llog_create_rec_lcr_fid(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { //offset=lustre_dissect_struct_HASH(0x85d5830)(tvb,offset,pinfo,tree,hf_lustre_llog_create_rec_lcr_fid); - + return offset; } @@ -5532,7 +6450,7 @@ static int lustre_dissect_element_llog_create_rec_lcr_tail(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { //offset=lustre_dissect_struct_HASH(0x85d69dc)(tvb,offset,pinfo,tree,hf_lustre_llog_create_rec_lcr_tail); - + return offset; } @@ -5587,7 +6505,7 @@ static int lustre_dissect_element_llog_orphan_rec_lor_hdr(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { //offset=lustre_dissect_struct_HASH(0x85d767c)(tvb,offset,pinfo,tree,hf_lustre_llog_orphan_rec_lor_hdr); - + return offset; } @@ -6109,9 +7027,9 @@ lustre_dissect_element_llog_log_llh_flags(tvbuff_t *tvb _U_, int offset _U_, pac item = proto_tree_add_item(parent_tree,hf_index, tvb, offset, 4, TRUE); tree = proto_item_add_subtree(item, ett_lustre_llog_log_llh_flags); } - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_llog_hdr_llh_flag_zap_when_empty); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_llog_hdr_llh_flag_is_cat); - dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_llog_hdr_llh_flag_is_play); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_llog_hdr_llh_flag_zap_when_empty); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_llog_hdr_llh_flag_is_cat); + dissect_uint32(tvb, offset, pinfo, tree, hf_lustre_llog_hdr_llh_flag_is_play); offset+=4; return offset; @@ -7079,17 +7997,17 @@ lustre_dissect_struct_qunit_data_old(tvbuff_t *tvb _U_, int offset _U_, packet_i /* ------------------------------------------------------------------------- */ /* dissect string . - * the length of the string is the current buflen + * the length of the string is the current buflen * @tvb the packet buff - * @offset the current offset - * @pinfo + * @offset the current offset + * @pinfo * @parent_tree * @hf_index : the corresponding header field * @buf_num : the corresponding bufnumber of the string (we use it to * determine the string length), must respect : 0LUSTRE_BUFCOUNT) + if(buf_num+1>LUSTRE_BUFCOUNT) return offset; string_len = tvb_get_letohl(tvb, LUSTRE_BUFLEN_OFF + 4 * buf_num) ; /* 4 because a buflen is on a guint32 */ @@ -7120,8 +8038,8 @@ lustre_dissect_element_string (tvbuff_t *tvb _U_, int offset _U_, packet_info *p /* ------------------------------------------------------------------------- */ /* dissect raw data */ -static int -lustre_dissect_element_data(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_, guint32 buf_num) +static int +lustre_dissect_element_data(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, int hf_index _U_, guint32 buf_num) { proto_item *item = NULL; @@ -7129,7 +8047,7 @@ lustre_dissect_element_data(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinf int old_offset; old_offset=offset; - if(buf_num+1>LUSTRE_BUFCOUNT) + if(buf_num+1>LUSTRE_BUFCOUNT) return offset; data_len = tvb_get_letohl(tvb, LUSTRE_BUFLEN_OFF + 4 * buf_num) ; /* 4 because a buflen is on a guint32 */ @@ -7137,14 +8055,14 @@ lustre_dissect_element_data(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinf offset+=data_len; proto_item_set_len(item, offset-old_offset); - offset=add_extra_padding(tvb,offset,pinfo,parent_tree); /* align on 8 bytes */ + offset=add_extra_padding(tvb,offset,pinfo,parent_tree); /* align on 8 bytes */ - return offset; + return offset; } /* ------------------------------------------------------------------------ */ -static int reint_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_) +static int reint_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_) { guint32 opcode ; @@ -7153,47 +8071,53 @@ static int reint_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info * switch(opcode){ case REINT_SETATTR: /* [eadata][cookie_data][ldlm_request] */ - offset=lustre_dissect_struct_mds_rec_create(tvb, offset, pinfo, tree, hf_lustre_mds_rec_create); + offset=lustre_dissect_struct_mdt_rec_setattr(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setattr); offset=lustre_dissect_struct_ldlm_request(tvb, offset, pinfo, tree, hf_lustre_ldlm_request) ; break; - case REINT_CREATE : + case REINT_CREATE : /* [rec_create][filename][tgt.. à 0 pour l'instant][ldlm_request] */ - offset=lustre_dissect_struct_mds_rec_create(tvb, offset, pinfo, tree, hf_lustre_mds_rec_create); - offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_reint_name, LUSTRE_REQ_REC_OFF+1); + offset=lustre_dissect_struct_mdt_rec_create(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create); + offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_reint_name, LUSTRE_REQ_REC_OFF+1); offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_reint_name, LUSTRE_REQ_REC_OFF+2); /* this string is all the time =="\0"*/ offset=lustre_dissect_struct_ldlm_request(tvb, offset, pinfo, tree, hf_lustre_ldlm_request) ; break; case REINT_LINK : - /*[mds_rec_link][filename][ldlm_req] */ - offset=lustre_dissect_struct_mds_rec_link(tvb, offset, pinfo, tree, hf_lustre_mds_rec_link); + /*[mdt_rec_link][filename][ldlm_req] */ + offset=lustre_dissect_struct_mdt_rec_link(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_link); offset=lustre_dissect_struct_ldlm_request(tvb, offset, pinfo, tree, hf_lustre_ldlm_request) ; /*TODO : need to be check*/ break; - case REINT_UNLINK : /* mds_unlink_unpack : [mds_rec_unlink][filename][ldlm_req] */ - /* [mds_rec_unlink][filename][ldlm_req][..]*/ - offset=lustre_dissect_struct_mds_rec_unlink(tvb, offset, pinfo, tree, hf_lustre_mds_rec_unlink); - offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_reint_name, LUSTRE_REQ_REC_OFF+1); - if ( (tvb_get_letohl(tvb,LUSTRE_BUFLEN_OFF+4*(LUSTRE_REQ_REC_OFF +2))) == 112) /* TODO : ugly .. but + case REINT_UNLINK : /* mds_unlink_unpack : [mdt_rec_unlink][filename][ldlm_req] */ + /* [mdt_rec_unlink][filename][ldlm_req][..]*/ + offset=lustre_dissect_struct_mdt_rec_unlink(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink); + offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_reint_name, LUSTRE_REQ_REC_OFF+1); + if ( (tvb_get_letohl(tvb,LUSTRE_BUFLEN_OFF+4*(LUSTRE_REQ_REC_OFF +2))) == 112) /* TODO : ugly .. but for now we have to do this */ offset=lustre_dissect_struct_obd_quotactl(tvb, offset, pinfo, tree, hf_lustre_obd_quotactl); else offset=lustre_dissect_struct_ldlm_request(tvb, offset, pinfo, tree, hf_lustre_ldlm_request) ; break; - case REINT_RENAME : /*mds_rename_unpack : [mds_rec_rename][filename source][filename target_name][ldlm_request] */ - offset=lustre_dissect_struct_mds_rec_rename(tvb, offset, pinfo, tree, hf_lustre_mds_rec_link); - offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_reint_old_name, LUSTRE_REQ_REC_OFF+1); - offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_reint_new_name, LUSTRE_REQ_REC_OFF+2); + case REINT_RENAME : /*mds_rename_unpack : [mdt_rec_rename][filename source][filename target_name][ldlm_request] */ + offset=lustre_dissect_struct_mdt_rec_rename(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_rename); + offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_reint_old_name, LUSTRE_REQ_REC_OFF+1); + offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_reint_new_name, LUSTRE_REQ_REC_OFF+2); offset=lustre_dissect_struct_ldlm_request(tvb, offset, pinfo, tree, hf_lustre_ldlm_request) ; break; case REINT_OPEN : /* [rec_create][filename][eadata] */ - offset=lustre_dissect_struct_mds_rec_create(tvb, offset, pinfo, tree, hf_lustre_mds_rec_create); - offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_reint_name, LUSTRE_REQ_REC_OFF+1); + offset=lustre_dissect_struct_mdt_rec_create(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create); + offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_reint_name, LUSTRE_REQ_REC_OFF+1); offset=lustre_dissect_element_data(tvb, offset, pinfo, tree, hf_lustre_mds_xattr_eadata, LUSTRE_REQ_REC_OFF+2); /* TODO : replace with hf_eadata */ break; + case REINT_SETXATTR : + /* [eadata][cookie_data][ldlm_request] */ + offset=lustre_dissect_struct_mdt_rec_setxattr(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_setxattr); + offset=lustre_dissect_struct_ldlm_request(tvb, offset, pinfo, tree, + hf_lustre_ldlm_request) ; + break; default: break; @@ -7210,30 +8134,30 @@ lustre_dissect_generic_connect(tvbuff_t *tvb _U_, int offset _U_, packet_info *p /*TODO : add a cuuid and target uid */ offset=lustre_dissect_struct_obd_uuid(tvb, offset, pinfo, tree, hf_lustre_obd_uuid); offset=lustre_dissect_struct_obd_uuid(tvb, offset, pinfo, tree, hf_lustre_obd_uuid); - offset=lustre_dissect_struct_handle_cookie(tvb,offset,pinfo,tree,hf_lustre_mds_body_handle); + offset=lustre_dissect_struct_handle_cookie(tvb,offset,pinfo,tree,hf_lustre_mdt_body_handle); offset=lustre_dissect_struct_obd_connect_data(tvb,offset,pinfo,tree,hf_lustre_obd_connect_data); return offset; } static int -lustre_ost_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_, guint32 opc _U_, guint32 pb_type) +lustre_ost_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_, guint32 opc _U_, guint32 pb_type) { guint32 i ; switch (opc){ case OST_REPLY: /* obsolete so nothing */ break; - case OST_GETATTR: - offset=lustre_dissect_struct_ost_body(tvb, offset, pinfo, tree, hf_lustre_ost_body) ; + case OST_GETATTR: + offset=lustre_dissect_struct_ost_body(tvb, offset, pinfo, tree, hf_lustre_ost_body) ; break; case OST_SETATTR: - offset=lustre_dissect_struct_ost_body(tvb, offset, pinfo, tree, hf_lustre_ost_body) ; + offset=lustre_dissect_struct_ost_body(tvb, offset, pinfo, tree, hf_lustre_ost_body) ; break; case OST_READ: /* [OST_BODY][obd_ioobj][niobuf_remote] for request, [OST_BODY] for reply */ - offset=lustre_dissect_struct_ost_body(tvb, offset, pinfo, tree, hf_lustre_ost_body) ; + offset=lustre_dissect_struct_ost_body(tvb, offset, pinfo, tree, hf_lustre_ost_body) ; if(pb_type==PTL_RPC_MSG_REQUEST){ - offset=lustre_dissect_struct_obd_ioobj(tvb, offset, pinfo, tree, hf_lustre_obd_ioobj); - offset=lustre_dissect_struct_niobuf_remote(tvb,offset,pinfo, tree, hf_lustre_niobuf_remote); + offset=lustre_dissect_struct_obd_ioobj(tvb, offset, pinfo, tree, hf_lustre_obd_ioobj); + offset=lustre_dissect_struct_niobuf_remote(tvb,offset,pinfo, tree, hf_lustre_niobuf_remote); } break; case OST_WRITE: @@ -7242,33 +8166,33 @@ lustre_ost_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo if(pb_type==PTL_RPC_MSG_REQUEST) { for (i=0;i=2) - offset=lustre_dissect_struct_obd_statfs(tvb, offset, pinfo, tree, hf_lustre_obd_statfs) ; + offset=lustre_dissect_struct_obd_statfs(tvb, offset, pinfo, tree, hf_lustre_obd_statfs) ; break; case OST_SYNC: /*[ost_body] in both case */ - offset=lustre_dissect_struct_ost_body(tvb, offset, pinfo, tree, hf_lustre_ost_body) ; + offset=lustre_dissect_struct_ost_body(tvb, offset, pinfo, tree, hf_lustre_ost_body) ; break; case OST_SET_INFO: if(pb_type==PTL_RPC_MSG_REQUEST) @@ -7309,39 +8233,39 @@ lustre_ost_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo break; case OST_QUOTACHECK: if(pb_type==PTL_RPC_MSG_REQUEST) - offset=lustre_dissect_struct_obd_quotactl(tvb, offset, pinfo, tree, hf_lustre_obd_quotactl) ; + offset=lustre_dissect_struct_obd_quotactl(tvb, offset, pinfo, tree, hf_lustre_obd_quotactl) ; /* nothing in reply */ break; case OST_QUOTACTL: /*[obd_quotactl in both case]*/ - offset=lustre_dissect_struct_obd_quotactl(tvb, offset, pinfo, tree, hf_lustre_obd_quotactl) ; + offset=lustre_dissect_struct_obd_quotactl(tvb, offset, pinfo, tree, hf_lustre_obd_quotactl) ; case OST_QUOTA_ADJUST_QUNIT: /* [quota_adjust_qunit] in both case ? */ - offset=lustre_dissect_struct_quota_adjust_qunit(tvb, offset, pinfo, tree, hf_lustre_quota_adjust_qunit) ; + offset=lustre_dissect_struct_quota_adjust_qunit(tvb, offset, pinfo, tree, hf_lustre_quota_adjust_qunit) ; }; return offset; } static int -lustre_mds_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_, guint32 opc _U_, guint32 pb_type) +lustre_mds_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_, guint32 opc _U_, guint32 pb_type) { switch (opc){ case MDS_DISCONNECT: /*[nothing]*/ break; - case MDS_GETSTATUS: + case MDS_GETSTATUS: /*[mds body]*/ - offset=lustre_dissect_struct_mds_body(tvb, offset, pinfo, tree, hf_lustre_mds_body) ; + offset=lustre_dissect_struct_mdt_body(tvb, offset, pinfo, tree, hf_lustre_mdt_body) ; break; case MDS_SETXATTR: if(pb_type==PTL_RPC_MSG_REQUEST) /* [mds body] */ - offset=lustre_dissect_struct_mds_body(tvb, offset, pinfo, tree, hf_lustre_mds_body) ; + offset=lustre_dissect_struct_mdt_body(tvb, offset, pinfo, tree, hf_lustre_mdt_body) ; /*if(reply) : [nothing]*/ break; case MDS_GETXATTR: - offset=lustre_dissect_struct_mds_body(tvb, offset, pinfo, tree, hf_lustre_mds_body) ; + offset=lustre_dissect_struct_mdt_body(tvb, offset, pinfo, tree, hf_lustre_mdt_body) ; if(pb_type==PTL_RPC_MSG_REQUEST) /*[string_xattr_name]*/ offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_mds_xattr_name, LUSTRE_REQ_REC_OFF+1); @@ -7350,76 +8274,76 @@ lustre_mds_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo offset=lustre_dissect_element_data(tvb, offset, pinfo, tree, hf_lustre_mds_xattr_eadata, LUSTRE_REQ_REC_OFF+1); break; case MDS_GETATTR: - offset=lustre_dissect_struct_mds_body(tvb, offset, pinfo, tree, hf_lustre_mds_body) ; - /* TODO [ something ??? ] */ + offset=lustre_dissect_struct_mdt_body(tvb, offset, pinfo, tree, hf_lustre_mdt_body) ; + /* TODO [ something ??? ] */ break; case MDS_GETATTR_NAME: if(pb_type==PTL_RPC_MSG_REQUEST) - /*[mds_body]*/ - offset=lustre_dissect_struct_mds_body(tvb, offset, pinfo, tree, hf_lustre_mds_body) ; + /*[mdt_body]*/ + offset=lustre_dissect_struct_mdt_body(tvb, offset, pinfo, tree, hf_lustre_mdt_body) ; /*[nothing in reply]*/ break; case MDS_DONE_WRITING: - /*[mds_body]*/ - offset=lustre_dissect_struct_mds_body(tvb, offset, pinfo, tree, hf_lustre_mds_body) ; + /*[mdt_body]*/ + offset=lustre_dissect_struct_mdt_body(tvb, offset, pinfo, tree, hf_lustre_mdt_body) ; break; case MDS_PIN: /* repbody.. */ - /*[mds_body]*/ - offset=lustre_dissect_struct_mds_body(tvb, offset, pinfo, tree, hf_lustre_mds_body) ; + /*[mdt_body]*/ + offset=lustre_dissect_struct_mdt_body(tvb, offset, pinfo, tree, hf_lustre_mdt_body) ; break; case MDS_SYNC: - /*[mds_body]*/ - offset=lustre_dissect_struct_mds_body(tvb, offset, pinfo, tree, hf_lustre_mds_body) ; + /*[mdt_body]*/ + offset=lustre_dissect_struct_mdt_body(tvb, offset, pinfo, tree, hf_lustre_mdt_body) ; break; case MDS_CLOSE: /* TODO : check the corresponding structure in lustre code */ - if(pb_type==PTL_RPC_MSG_REQUEST) - { /* [mds_body] [lov_mds_md][log_cookie] */ - offset=lustre_dissect_struct_mds_body(tvb, offset, pinfo, tree, hf_lustre_mds_body) ; - if(LUSTRE_BUFCOUNT>=3) + if(pb_type==PTL_RPC_MSG_REQUEST) + { /* [mdt_body] [lov_mds_md][log_cookie] */ + offset=lustre_dissect_struct_mdt_body(tvb, offset, pinfo, tree, hf_lustre_mdt_body) ; + if(LUSTRE_BUFCOUNT>=3) offset=lustre_dissect_struct_lov_mds_md_v1(tvb,offset,pinfo,tree,hf_lustre_lov_mds_md_v1); - if(LUSTRE_BUFCOUNT>=4) + if(LUSTRE_BUFCOUNT>=4) if( tvb_get_letohl(tvb,LUSTRE_BUFLEN_OFF+4*(LUSTRE_REQ_REC_OFF+2)) > 0) offset=lustre_dissect_struct_llog_cookie(tvb,offset,pinfo,tree,hf_lustre_llog_cookie); } - if(pb_type==PTL_RPC_MSG_REPLY) - { /* [mds_body][md][cookie] TODO : check that (reread the code about shrink in lustre) */ - offset=lustre_dissect_struct_mds_body(tvb, offset, pinfo, tree, hf_lustre_mds_body) ; + if(pb_type==PTL_RPC_MSG_REPLY) + { /* [mdt_body][md][cookie] TODO : check that (reread the code about shrink in lustre) */ + offset=lustre_dissect_struct_mdt_body(tvb, offset, pinfo, tree, hf_lustre_mdt_body) ; if(tvb_get_letohl(tvb,LUSTRE_BUFLEN_OFF+4*(LUSTRE_REQ_REC_OFF+1)) > 0) offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_mds_md_data,LUSTRE_REQ_REC_OFF+1); /* key */ if(tvb_get_letohl(tvb,LUSTRE_BUFLEN_OFF+4*(LUSTRE_REQ_REC_OFF+2)) > 0) - offset=lustre_dissect_struct_llog_cookie(tvb,offset,pinfo,tree,hf_lustre_llog_cookie); + offset=lustre_dissect_struct_llog_cookie(tvb,offset,pinfo,tree,hf_lustre_llog_cookie); } break; case MDS_STATFS: if(pb_type==PTL_RPC_MSG_REPLY) /*[obd_statfs]*/ - offset=lustre_dissect_struct_obd_statfs(tvb, offset, pinfo, tree, hf_lustre_obd_statfs) ; + offset=lustre_dissect_struct_obd_statfs(tvb, offset, pinfo, tree, hf_lustre_obd_statfs) ; /*in request : [nothing]*/ break; case MDS_READPAGE: - /* [mds_body] but with some different interpration, need to modify the hf : TODO */ - offset=lustre_dissect_struct_mds_body(tvb, offset, pinfo, tree, hf_lustre_mds_body) ; + /* [mdt_body] but with some different interpration, need to modify the hf : TODO */ + offset=lustre_dissect_struct_mdt_body(tvb, offset, pinfo, tree, hf_lustre_mdt_body) ; break; - case MDS_REINT: + case MDS_REINT: /* the structure depend on the intent_opcode */ if(pb_type==PTL_RPC_MSG_REQUEST) offset=reint_opcode_process(tvb, offset, pinfo, tree); if(pb_type==PTL_RPC_MSG_REPLY) { - /*[mds_body][??][llog_logid_rec] */ - offset=lustre_dissect_struct_mds_body(tvb, offset, pinfo, tree, hf_lustre_mds_body) ; + /*[mdt_body][??][llog_logid_rec] */ + offset=lustre_dissect_struct_mdt_body(tvb, offset, pinfo, tree, hf_lustre_mdt_body) ; if(tvb_get_letohl(tvb,LUSTRE_BUFLEN_OFF+4*(LUSTRE_REQ_REC_OFF+1)) > 0){ /* OPEN, RENAME, and UNLINK */ if(tvb_get_letohl(tvb, LUSTRE_BUFLEN_OFF+4*(LUSTRE_REQ_REC_OFF+1)) > 0){ /* rec_unlink or rec_rename */ - offset=lustre_dissect_element_data(tvb, offset, pinfo, tree, hf_lustre_mds_xattr_eadata, - LUSTRE_REQ_REC_OFF+1); // replace by eadata TODO TODO // + offset=lustre_dissect_element_data(tvb, offset, pinfo, tree, hf_lustre_mds_xattr_eadata, + LUSTRE_REQ_REC_OFF+1); // replace by eadata TODO TODO // if(tvb_get_letohl(tvb,LUSTRE_BUFLEN_OFF+4*(LUSTRE_REQ_REC_OFF+2)) > 0) /* with unlink or rename we have 4 buffers handler.c line 1691*/ - offset=lustre_dissect_element_data(tvb, offset, pinfo, tree, - hf_lustre_mds_xattr_eadata, LUSTRE_REQ_REC_OFF+2); // replace withe eadata TODO TODO // + offset=lustre_dissect_element_data(tvb, offset, pinfo, tree, + hf_lustre_mds_xattr_eadata, LUSTRE_REQ_REC_OFF+2); // replace withe eadata TODO TODO // } } @@ -7437,15 +8361,15 @@ lustre_mds_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo case MDS_QUOTACHECK: /* [obd_quotactl] */ if(pb_type==PTL_RPC_MSG_REQUEST) - offset=lustre_dissect_struct_obd_quotactl(tvb, offset, pinfo, tree, hf_lustre_obd_quotactl) ; + offset=lustre_dissect_struct_obd_quotactl(tvb, offset, pinfo, tree, hf_lustre_obd_quotactl) ; break; case MDS_QUOTACTL: /* [obd_quotactl] in both case*/ - offset=lustre_dissect_struct_obd_quotactl(tvb, offset, pinfo, tree, hf_lustre_obd_quotactl) ; + offset=lustre_dissect_struct_obd_quotactl(tvb, offset, pinfo, tree, hf_lustre_obd_quotactl) ; break; - case MDS_CONNECT: + case MDS_CONNECT: if (pb_type==PTL_RPC_MSG_REQUEST) /* [targetuuid][clientuuid][lustre_handle][obd_connect_data] */ - offset=lustre_dissect_generic_connect(tvb,offset,pinfo,tree); + offset=lustre_dissect_generic_connect(tvb,offset,pinfo,tree); if (pb_type==PTL_RPC_MSG_REPLY) /*[obd_connect_data]*/ offset=lustre_dissect_struct_obd_connect_data(tvb,offset,pinfo,tree,hf_lustre_obd_connect_data); break; @@ -7459,17 +8383,17 @@ lustre_mds_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo static int -lustre_ldlm_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_, guint32 opc _U_, guint32 pb_type) +lustre_ldlm_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_, guint32 opc _U_, guint32 pb_type) { switch (opc) { case LDLM_ENQUEUE: - /*[ldlm_request] if we have one more buffer it's [intent_opcode] and the opcode give us the + /*[ldlm_request] if we have one more buffer it's [intent_opcode] and the opcode give us the * corresponding intent structure [intent] */ if(pb_type==PTL_RPC_MSG_REQUEST) { - offset=lustre_dissect_struct_ldlm_request(tvb, offset, pinfo, tree, hf_lustre_ldlm_request) ; + offset=lustre_dissect_struct_ldlm_request(tvb, offset, pinfo, tree, hf_lustre_ldlm_request) ; if (LUSTRE_BUFCOUNT>=3) offset=lustre_dissect_struct_ldlm_intent(tvb, offset, pinfo, tree, hf_lustre_ldlm_intent); } @@ -7478,20 +8402,20 @@ lustre_ldlm_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo guint32 ldlm_type; guint32 magic; /*[ldlm_reply]*/ - offset=lustre_dissect_struct_ldlm_reply(tvb, offset, pinfo, tree, hf_lustre_ldlm_reply,&ldlm_type) ; - if(LUSTRE_BUFCOUNT>2 && (tvb_get_letohl(tvb,LUSTRE_BUFLEN_OFF+4*2) == 40)) - /* TODO :this code need to be check and test, the lustre corresponding code is'nt explicit, so + offset=lustre_dissect_struct_ldlm_reply(tvb, offset, pinfo, tree, hf_lustre_ldlm_reply,&ldlm_type) ; + if(LUSTRE_BUFCOUNT>2 && (tvb_get_letohl(tvb,LUSTRE_BUFLEN_OFF+4*2) == 40)) + /* TODO :this code need to be check and test, the lustre corresponding code is'nt explicit, so * not sure to have this buffer, but in example it works fine */ - offset=lustre_dissect_struct_ost_lvb(tvb, offset, pinfo, tree, hf_lustre_ost_lvb); - else + offset=lustre_dissect_struct_ost_lvb(tvb, offset, pinfo, tree, hf_lustre_ost_lvb); + else if(LUSTRE_BUFCOUNT>2) { - offset=lustre_dissect_struct_mds_body(tvb, offset, pinfo, tree, hf_lustre_mds_body) ; + offset=lustre_dissect_struct_mdt_body(tvb, offset, pinfo, tree, hf_lustre_mdt_body) ; /*g_print("buflen_off+4*3 = %d", tvb_get_letohl(tvb,LUSTRE_BUFLEN_OFF+4*LUSTRE_DLM_INTENT_REC_OFF));*/ - if(LUSTRE_BUFCOUNT>2 && + if(LUSTRE_BUFCOUNT>2 && (tvb_get_letohl(tvb,LUSTRE_BUFLEN_OFF+4*LUSTRE_DLM_INTENT_REC_OFF) > 0)) - { + { magic=tvb_get_letohl(tvb, offset); /* TODO : replace this with a macro */ switch(magic) { @@ -7499,7 +8423,7 @@ lustre_ldlm_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo offset=lustre_dissect_struct_lov_mds_md_v1(tvb,offset,pinfo,tree,hf_lustre_lov_mds_md_v1); break; default: - offset=lustre_dissect_element_data(tvb, offset, pinfo, tree, + offset=lustre_dissect_element_data(tvb, offset, pinfo, tree, hf_lustre_extra_padding, LUSTRE_DLM_INTENT_REC_OFF); break; }; @@ -7511,31 +8435,31 @@ lustre_ldlm_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo case LDLM_CONVERT: if(pb_type==PTL_RPC_MSG_REQUEST) /*[ldlm_request]*/ - offset=lustre_dissect_struct_ldlm_request(tvb, offset, pinfo, tree, hf_lustre_ldlm_request) ; + offset=lustre_dissect_struct_ldlm_request(tvb, offset, pinfo, tree, hf_lustre_ldlm_request) ; if(pb_type==PTL_RPC_MSG_REPLY) /*[ldlm_reply]*/ - offset=lustre_dissect_struct_ldlm_reply(tvb, offset, pinfo, tree, hf_lustre_ldlm_reply, NULL) ; + offset=lustre_dissect_struct_ldlm_reply(tvb, offset, pinfo, tree, hf_lustre_ldlm_reply, NULL) ; break; case LDLM_CANCEL: if(pb_type==PTL_RPC_MSG_REQUEST) /*[ldlm_request]*/ - offset=lustre_dissect_struct_ldlm_request(tvb, offset, pinfo, tree, hf_lustre_ldlm_request) ; + offset=lustre_dissect_struct_ldlm_request(tvb, offset, pinfo, tree, hf_lustre_ldlm_request) ; /*[nothing en reply]*/ break; case LDLM_BL_CALLBACK: /* TODO : check the corresponding code in lustre*/ if(pb_type==PTL_RPC_MSG_REQUEST) /*[ldlm_request]*/ - offset=lustre_dissect_struct_ldlm_request(tvb, offset, pinfo, tree, hf_lustre_ldlm_request) ; + offset=lustre_dissect_struct_ldlm_request(tvb, offset, pinfo, tree, hf_lustre_ldlm_request) ; break; case LDLM_CP_CALLBACK: if(pb_type==PTL_RPC_MSG_REQUEST){ - /*[ldlm_request] if the third buffer exist we have [lvb data] so it's [ost_lvb] : TODO : + /*[ldlm_request] if the third buffer exist we have [lvb data] so it's [ost_lvb] : TODO : * check that */ - offset=lustre_dissect_struct_ldlm_request(tvb, offset, pinfo, tree, hf_lustre_ldlm_request) ; - if(LUSTRE_BUFCOUNT>=3) + offset=lustre_dissect_struct_ldlm_request(tvb, offset, pinfo, tree, hf_lustre_ldlm_request) ; + if(LUSTRE_BUFCOUNT>=3) offset=lustre_dissect_struct_ost_lvb(tvb,offset,pinfo,tree,hf_lustre_ost_lvb); } /*reply : [nothing] */ @@ -7544,11 +8468,11 @@ lustre_ldlm_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo case LDLM_GL_CALLBACK: if(pb_type==PTL_RPC_MSG_REQUEST) /*[ldlm_request] */ - offset=lustre_dissect_struct_ldlm_request(tvb, offset, pinfo, tree, hf_lustre_ldlm_request) ; - else + offset=lustre_dissect_struct_ldlm_request(tvb, offset, pinfo, tree, hf_lustre_ldlm_request) ; + else if(pb_type==PTL_RPC_MSG_REPLY) /*reply : [ost_lvb] <-- need to be check*/ - offset=lustre_dissect_struct_ost_lvb(tvb, offset, pinfo, tree, hf_lustre_ost_lvb); + offset=lustre_dissect_struct_ost_lvb(tvb, offset, pinfo, tree, hf_lustre_ost_lvb); break; default : @@ -7558,12 +8482,12 @@ lustre_ldlm_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo } static int -lustre_mgs_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_, guint32 opc _U_, guint32 pb_type) +lustre_mgs_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_, guint32 opc _U_, guint32 pb_type) { switch (opc){ case MGS_CONNECT : if (pb_type==PTL_RPC_MSG_REQUEST) /* [targetuuid][clientuuid][lustre_handle][obd_connect_data] */ - offset=lustre_dissect_generic_connect(tvb,offset,pinfo,tree); + offset=lustre_dissect_generic_connect(tvb,offset,pinfo,tree); if (pb_type==PTL_RPC_MSG_REPLY) /*[obd_connect_data]*/ offset=lustre_dissect_struct_obd_connect_data(tvb,offset,pinfo,tree,hf_lustre_obd_connect_data); break; @@ -7575,7 +8499,7 @@ lustre_mgs_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo break; case MGS_TARGET_REG: /*[mgs_target_info], mgs_handler.c mgs_handle_target_reg() called whenever a target startup*/ - offset=lustre_dissect_struct_mgs_target_info(tvb, offset, pinfo, tree, hf_lustre_mgs_target_info); + offset=lustre_dissect_struct_mgs_target_info(tvb, offset, pinfo, tree, hf_lustre_mgs_target_info); break; case MGS_TARGET_DEL: /*[nothing]*/ @@ -7590,11 +8514,11 @@ lustre_mgs_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo return offset; } -static int -lustre_odb_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_, guint32 opc _U_, guint32 pb_type) +static int +lustre_odb_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_, guint32 opc _U_, guint32 pb_type) { switch(opc){ - case OBD_PING : + case OBD_PING : /*[nothing]*/ break; case OBD_LOG_CANCEL: @@ -7602,7 +8526,7 @@ lustre_odb_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo break; case OBD_QC_CALLBACK: if(pb_type==PTL_RPC_MSG_REQUEST) - offset=lustre_dissect_struct_obd_quotactl(tvb, offset, pinfo, tree, hf_lustre_obd_quotactl); + offset=lustre_dissect_struct_obd_quotactl(tvb, offset, pinfo, tree, hf_lustre_obd_quotactl); /*if (request) : [nothing]*/ break; default: @@ -7612,7 +8536,7 @@ lustre_odb_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo } static int -lustre_llog_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_, guint32 opc _U_, guint32 pb_type) +lustre_llog_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_, guint32 opc _U_, guint32 pb_type) { switch(opc){ case LLOG_ORIGIN_HANDLE_CREATE : /* in handler.c */ @@ -7620,14 +8544,14 @@ lustre_llog_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo offset=lustre_dissect_struct_llogd_body(tvb, offset, pinfo, tree, hf_lustre_llogd_body); if(pb_type==PTL_RPC_MSG_REQUEST) /*[filename] */ if (LUSTRE_BUFCOUNT>2) - offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_llogd_name, + offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_llogd_name, LUSTRE_REQ_REC_OFF+1); break; case LLOG_ORIGIN_HANDLE_NEXT_BLOCK :/* in handler.c */ /* [llogd_body][???] * the size of second buf is LLOG_CHKUNK_SIZE, so it's maybee only bulk data */ offset=lustre_dissect_struct_llogd_body(tvb, offset, pinfo, tree, hf_lustre_llogd_body); - offset=lustre_dissect_element_data(tvb, offset, pinfo, tree, hf_lustre_llogd_chunk, + offset=lustre_dissect_element_data(tvb, offset, pinfo, tree, hf_lustre_llogd_chunk, LUSTRE_REQ_REC_OFF + 1 ); break; case LLOG_ORIGIN_HANDLE_READ_HEADER:/* in handler.c */ @@ -7635,11 +8559,11 @@ lustre_llog_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo /* [llogd_body][llog_log_hdr] */ offset=lustre_dissect_struct_llogd_body(tvb, offset, pinfo, tree, hf_lustre_llogd_body); if(LUSTRE_BUFCOUNT>2) - offset=lustre_dissect_struct_llog_log_hdr(tvb, offset, pinfo, tree, + offset=lustre_dissect_struct_llog_log_hdr(tvb, offset, pinfo, tree, hf_lustre_llogd_log_hdr); } if(pb_type==PTL_RPC_MSG_REPLY) /* [llog_log_hdr] */ - offset=lustre_dissect_struct_llog_log_hdr(tvb, offset, pinfo, tree, + offset=lustre_dissect_struct_llog_log_hdr(tvb, offset, pinfo, tree, hf_lustre_llogd_log_hdr); break; case LLOG_ORIGIN_HANDLE_WRITE_REC : /* I think this is obsolete */ @@ -7653,17 +8577,17 @@ lustre_llog_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo case LLOG_CATINFO : /*in handler.c */ if(pb_type==PTL_RPC_MSG_REQUEST){ /* [keyword][if keyword=config [char*] else [nothing]] */ - offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_llogd_keyword, + offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_llogd_keyword, LUSTRE_REQ_REC_OFF); - if(strcmp(tvb_get_string(tvb, LUSTRE_REQ_REC_OFF, tvb_get_letohl(tvb, - LUSTRE_BUFLEN_OFF+4*LUSTRE_REQ_REC_OFF)), "config")==0) /* if(keyword == + if(strcmp(tvb_get_string(tvb, LUSTRE_REQ_REC_OFF, tvb_get_letohl(tvb, + LUSTRE_BUFLEN_OFF+4*LUSTRE_REQ_REC_OFF)), "config")==0) /* if(keyword == "config") */ - offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_llogd_client, + offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_llogd_client, LUSTRE_REQ_REC_OFF+1); } if(pb_type==PTL_RPC_MSG_REPLY) /*[buf] sizeof = llog_chunk_size*/ - offset=lustre_dissect_element_data(tvb, offset, pinfo, tree, hf_lustre_llogd_chunk, + offset=lustre_dissect_element_data(tvb, offset, pinfo, tree, hf_lustre_llogd_chunk, LUSTRE_REQ_REC_OFF + 1 ); /* TODO TODO : check if it's note a catid */ break; @@ -7672,7 +8596,7 @@ lustre_llog_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo offset=lustre_dissect_struct_llogd_body(tvb, offset, pinfo, tree, hf_lustre_llogd_body); if(pb_type==PTL_RPC_MSG_REPLY) /*[buf] size of llog_chunk_size*/ - offset=lustre_dissect_element_data(tvb, offset, pinfo, tree, hf_lustre_llogd_chunk, + offset=lustre_dissect_element_data(tvb, offset, pinfo, tree, hf_lustre_llogd_chunk, LUSTRE_REQ_REC_OFF + 1 ); break; case LLOG_ORIGIN_HANDLE_DESTROY : /* in handler.c */ @@ -7686,10 +8610,10 @@ lustre_llog_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo return offset; } -/* process lustre opcode : +/* process lustre opcode : check if opcode is in range_opcode, and call the corresponding opcode process function */ -static int -lustre_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_, guint32 opc _U_, guint32 pb_type) +static int +lustre_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_, guint32 opc _U_, guint32 pb_type) { if (opc <= OST_LAST_OPC) /* OST opcodes */ offset=lustre_ost_opcode_process( tvb , offset ,pinfo , tree , opc , pb_type) ; @@ -7714,12 +8638,12 @@ lustre_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, /* ----------------------------------------------- */ /* add an extra padding to be aligned to 8bytes */ -static int -add_extra_padding(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_) +static int +add_extra_padding(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_) { guint32 padding_len; - padding_len = (8- offset%8)%8; + padding_len = (8- offset%8)%8; if(padding_len){ proto_tree_add_item(tree, hf_lustre_extra_padding , tvb, offset, padding_len, TRUE); offset+=padding_len; @@ -7728,34 +8652,34 @@ add_extra_padding(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, pro } /* ----------------------------------------------- */ -static int -ldlm_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_, guint64 intent_opc _U_) +static int +ldlm_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree * tree _U_, guint64 intent_opc _U_) { /* all corresponding code is in mdc_locks.c in function mdc_enqueue() */ /* if 0x0003 we have CREAT + OPEN */ if (intent_opc & IT_OPEN) { /* mdc_intent_open_pack(), d'où [opcode][mdc_rec_create][name][eada] */ - offset=lustre_dissect_struct_mds_rec_create(tvb, offset, pinfo, tree, hf_lustre_mds_rec_create); + offset=lustre_dissect_struct_mdt_rec_create(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_create); offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_reint_name, LUSTRE_DLM_INTENT_REC_OFF+1); offset=lustre_dissect_element_data(tvb, offset, pinfo, tree, hf_lustre_mds_xattr_eadata, LUSTRE_DLM_INTENT_REC_OFF+2); /* TODO : replace hf with eada hf */ } if (intent_opc & IT_UNLINK){ - /* mdc_intent_unlink_pack(), d'où [opcode][mds_rec_unlink][name] */ - offset=lustre_dissect_struct_mds_rec_unlink(tvb, offset, pinfo, tree, hf_lustre_mds_rec_unlink); + /* mdc_intent_unlink_pack(), d'où [opcode][mdt_rec_unlink][name] */ + offset=lustre_dissect_struct_mdt_rec_unlink(tvb, offset, pinfo, tree, hf_lustre_mdt_rec_unlink); offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_reint_name, LUSTRE_DLM_INTENT_REC_OFF+1); } if (intent_opc & IT_GETATTR){ - /* mdc_intent_lookup_pack, d'où [mds_body][name] */ - offset=lustre_dissect_struct_mds_body(tvb, offset, pinfo, tree, hf_lustre_mds_body) ; + /* mdc_intent_lookup_pack, d'où [mdt_body][name] */ + offset=lustre_dissect_struct_mdt_body(tvb, offset, pinfo, tree, hf_lustre_mdt_body) ; offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_reint_name, LUSTRE_DLM_INTENT_REC_OFF+1); } if (intent_opc & IT_LOOKUP){ - /* mdc_intent_lookup_pack, d'où [mds_body][name] */ - offset=lustre_dissect_struct_mds_body(tvb, offset, pinfo, tree, hf_lustre_mds_body) ; + /* mdc_intent_lookup_pack, d'où [mdt_body][name] */ + offset=lustre_dissect_struct_mdt_body(tvb, offset, pinfo, tree, hf_lustre_mdt_body) ; offset=lustre_dissect_element_string(tvb, offset, pinfo, tree, hf_lustre_reint_name, LUSTRE_DLM_INTENT_REC_OFF+1); } return offset; @@ -7766,7 +8690,7 @@ ldlm_opcode_process(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, p /* ----------------------------------------------- */ /* function to test if the packet is entirely dissected add BUG in PROTOCOL COL when it's not*/ static void -sanity_check(tvbuff_t *tvb, packet_info *pinfo, guint32 val_offset _U_) +sanity_check(tvbuff_t *tvb, packet_info *pinfo, guint32 val_offset _U_) { guint32 magic_number ; guint32 somme_buflen = 0 ; @@ -7775,7 +8699,7 @@ sanity_check(tvbuff_t *tvb, packet_info *pinfo, guint32 val_offset _U_) magic_number = tvb_get_letohl(tvb, 8); - for (i=0;icinfo, COL_PROTOCOL)) + if (check_col(pinfo->cinfo, COL_PROTOCOL)) col_set_str(pinfo->cinfo, COL_PROTOCOL, "Lustre"); /*light display*/ - if (check_col(pinfo->cinfo, COL_INFO)) + if (check_col(pinfo->cinfo, COL_INFO)) col_set_str(pinfo->cinfo, COL_INFO, ""); /* guint32 magic_number ; */ /* magic_number = tvb_get_letohl(tvb, LUSTRE_MAGIC_OFFSET); */ @@ -8400,14 +9324,14 @@ dissect_lustre(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) if (tree) { - guint32 magic_number ; + guint32 magic_number ; guint32 offset; - proto_item *ti = NULL ; - proto_tree * lustre_tree = NULL ; + proto_item *ti = NULL ; + proto_tree * lustre_tree = NULL ; - ti = proto_tree_add_item(tree,proto_lustre,tvb,0,-1,FALSE); - lustre_tree = proto_item_add_subtree(ti,ett_lustre); + ti = proto_tree_add_item(tree,proto_lustre,tvb,0,-1,FALSE); + lustre_tree = proto_item_add_subtree(ti,ett_lustre); magic_number = tvb_get_letohl(tvb, 8); @@ -8415,14 +9339,14 @@ dissect_lustre(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) switch (magic_number){ case LUSTRE_MSG_MAGIC_V1: - /* put some nice info*/ + /* put some nice info*/ proto_item_append_text(lustre_tree, " V1 "); - offset=lustre_dissect_struct_msg_v1(tvb, 0, pinfo, lustre_tree, proto_lustre ) ; + offset=lustre_dissect_struct_msg_v1(tvb, 0, pinfo, lustre_tree, proto_lustre ) ; break; case LUSTRE_MSG_MAGIC_V2: - /* put some nice info*/ + /* put some nice info*/ proto_item_append_text(lustre_tree, " V2 "); - offset=lustre_dissect_struct_msg_v2(tvb, 0, pinfo, lustre_tree, proto_lustre ) ; + offset=lustre_dissect_struct_msg_v2(tvb, 0, pinfo, lustre_tree, proto_lustre ) ; break; default: break; @@ -8434,270 +9358,577 @@ dissect_lustre(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) void proto_register_dcerpc_lustre(void) { static hf_register_info hf[] = { - { &hf_lustre_mds_body_ctime, - { "Ctime", "lustre.mds_body.ctime",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_fid1, - { "Fid1", "lustre.mds_body.fid1", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_nlink, - { "Nlink", "lustre.mds_body.nlink", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_flags, - { "Flags", "lustre.mds_body.flags", FT_UINT32, BASE_HEX, VALS(lustre_mds_flags_vals) , 0, "", HFILL }}, - { &hf_lustre_mds_body_fsgid, - { "Fsgid", "lustre.mds_body.fsgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_mtime, - { "Mtime", "lustre.mds_body.mtime",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_uid, - { "Uid", "lustre.mds_body.uid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_mode, - { "Mode", "lustre.mds_body.mode", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_max_cookiesize, - { "Max Cookiesize", "lustre.mds_body.max_cookiesize", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_io_epoch, - { "Io Epoch", "lustre.mds_body.io_epoch", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_ino, - { "Ino", "lustre.mds_body.ino", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_fid2, - { "Fid2", "lustre.mds_body.fid2", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_padding_4, - { "Padding 4", "lustre.mds_body.padding_4", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_aclsize, - { "Aclsize", "lustre.mds_body.aclsize", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_valid, - { "Valid", "lustre.mds_body.valid", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_generation, - { "Generation", "lustre.mds_body.generation", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_atime, - { "Atime", "lustre.mds_body.atime",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_handle, - { "Handle", "lustre.mds_body.handle", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_max_mdsize, - { "Max Mdsize", "lustre.mds_body.max_mdsize", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_rdev, - { "Rdev", "lustre.mds_body.rdev", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_blocks, - { "Blocks", "lustre.mds_body.blocks", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_fsuid, - { "Fsuid", "lustre.mds_body.fsuid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_gid, - { "Gid", "lustre.mds_body.gid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_handle_cookie, + { &hf_lustre_mdt_body, + { "mdt body", "lustre.mdt_body", FT_NONE, BASE_NONE, NULL , 0 , "", HFILL }}, + { &hf_lustre_mdt_body_fid1, + { "Fid1", "lustre.mdt_body.fid1", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_fid2, + { "Fid2", "lustre.mdt_body.fid2", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_handle, + { "Handle", "lustre.mdt_body.handle", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_valid, + { "Valid", "lustre.mdt_body.valid", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_size, + { "Size", "lustre.mdt_body.size", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_mtime, + { "Mtime", "lustre.mdt_body.mtime",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_atime, + { "Atime", "lustre.mdt_body.atime",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_ctime, + { "Ctime", "lustre.mdt_body.ctime",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_blocks, + { "Blocks", "lustre.mdt_body.blocks", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_ioepoch, + { "Ioepoch", "lustre.mdt_body.ioepoch", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_ino, + { "Ino", "lustre.mdt_body.ino", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_fsuid, + { "Fsuid", "lustre.mdt_body.fsuid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_fsgid, + { "Fsgid", "lustre.mdt_body.fsgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_capability, + { "Capability", "lustre.mdt_body.capability", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_mode, + { "Mode", "lustre.mdt_body.mode", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_uid, + { "Uid", "lustre.mdt_body.uid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_gid, + { "Gid", "lustre.mdt_body.gid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_flags, + { "Flags", "lustre.mdt_body.flags", FT_UINT32, BASE_HEX, VALS(lustre_mds_flags_vals) , 0, "", HFILL }}, + { &hf_lustre_mdt_body_rdev, + { "Rdev", "lustre.mdt_body.rdev", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_nlink, + { "Nlink", "lustre.mdt_body.nlink", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_generation, + { "Generation", "lustre.mdt_body.generation", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_suppgid, + { "Suppgid", "lustre.mdt_body.suppgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_eadatasize, + { "Eadatasize", "lustre.mdt_body.eadatasize", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_aclsize, + { "Aclsize", "lustre.mdt_body.aclsize", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_max_mdsize, + { "Max Mdsize", "lustre.mdt_body.max_mdsize", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_max_cookiesize, + { "Max Cookiesize", "lustre.mdt_body.max_cookiesize", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_uid_h, + { "Uid H", "lustre.mdt_body.uid_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_gid_h, + { "Gid H", "lustre.mdt_body.gid_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_padding_5, + { "Padding 5", "lustre.mdt_body.padding_5", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_padding_6, + { "Padding 6", "lustre.mdt_body.padding_6", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_padding_7, + { "Padding 7", "lustre.mdt_body.padding_7", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_padding_8, + { "Padding 8", "lustre.mdt_body.padding_8", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_padding_9, + { "Padding 9", "lustre.mdt_body.padding_9", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_body_padding_10, + { "Padding 10", "lustre.mdt_body.padding_10", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, + + { &hf_lustre_mdt_rec_setattr, + { "mdt rec setattr", "lustre.mdt_rec_setattr", FT_NONE, BASE_NONE, NULL , 0 , "", HFILL}}, + { &hf_lustre_mdt_rec_setattr_sa_opcode, + { "Sa Opcode", "lustre.mdt_rec_setattr.sa_opcode", FT_UINT32, BASE_DEC, VALS(lustre_mds_reint_t_vals), 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_cap, + { "Sa Cap", "lustre.mdt_rec_setattr.sa_cap", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_fsuid, + { "Sa Fsuid", "lustre.mdt_rec_setattr.sa_fsuid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_fsuid_h, + { "Sa Fsuid H", "lustre.mdt_rec_setattr.sa_fsuid_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_fsgid, + { "Sa Fsgid", "lustre.mdt_rec_setattr.sa_fsgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_fsgid_h, + { "Sa Fsgid H", "lustre.mdt_rec_setattr.sa_fsgid_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_suppgid, + { "Sa Suppgid", "lustre.mdt_rec_setattr.sa_suppgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_suppgid_h, + { "Sa Suppgid H", "lustre.mdt_rec_setattr.sa_suppgid_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_padding_1, + { "Sa Padding 1", "lustre.mdt_rec_setattr.sa_padding_1", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_padding_1_h, + { "Sa Padding 1 H", "lustre.mdt_rec_setattr.sa_padding_1_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_fid, + { "Sa Fid", "lustre.mdt_rec_setattr.sa_fid", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_valid, + { "Sa Valid", "lustre.mdt_rec_setattr.sa_valid", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_uid, + { "Sa Uid", "lustre.mdt_rec_setattr.sa_uid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_gid, + { "Sa Gid", "lustre.mdt_rec_setattr.sa_gid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_size, + { "Sa Size", "lustre.mdt_rec_setattr.sa_size", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_blocks, + { "Sa Blocks", "lustre.mdt_rec_setattr.sa_blocks", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_mtime, + { "Sa Mtime", "lustre.mdt_rec_setattr.sa_mtime",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_atime, + { "Sa Atime", "lustre.mdt_rec_setattr.sa_atime",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_ctime, + { "Sa Ctime", "lustre.mdt_rec_setattr.sa_ctime",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_attr_flags, + { "Sa Attr Flags", "lustre.mdt_rec_setattr.sa_attr_flags", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_mode, + { "Sa Mode", "lustre.mdt_rec_setattr.sa_mode", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_padding_2, + { "Sa Padding 2", "lustre.mdt_rec_setattr.sa_padding_2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_padding_3, + { "Sa Padding 3", "lustre.mdt_rec_setattr.sa_padding_3", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_padding_4, + { "Sa Padding 4", "lustre.mdt_rec_setattr.sa_padding_4", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setattr_sa_padding_5, + { "Sa Padding 5", "lustre.mdt_rec_setattr.sa_padding_5", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + + { &hf_lustre_mdt_rec_create, + { "mdt rec create", "lustre.mdt_rec_create", FT_NONE, BASE_NONE, NULL , 0 , "", HFILL}}, + { &hf_lustre_mdt_rec_create_cr_opcode, + { "Cr Opcode", "lustre.mdt_rec_create.cr_opcode", FT_UINT32, BASE_DEC, VALS(lustre_mds_reint_t_vals), 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_cap, + { "Cr Cap", "lustre.mdt_rec_create.cr_cap", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_fsuid, + { "Cr Fsuid", "lustre.mdt_rec_create.cr_fsuid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_fsuid_h, + { "Cr Fsuid H", "lustre.mdt_rec_create.cr_fsuid_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_fsgid, + { "Cr Fsgid", "lustre.mdt_rec_create.cr_fsgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_fsgid_h, + { "Cr Fsgid H", "lustre.mdt_rec_create.cr_fsgid_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_suppgid1, + { "Cr Suppgid1", "lustre.mdt_rec_create.cr_suppgid1", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_suppgid1_h, + { "Cr Suppgid1 H", "lustre.mdt_rec_create.cr_suppgid1_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_suppgid2, + { "Cr Suppgid2", "lustre.mdt_rec_create.cr_suppgid2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_suppgid2_h, + { "Cr Suppgid2 H", "lustre.mdt_rec_create.cr_suppgid2_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_fid1, + { "Cr Fid1", "lustre.mdt_rec_create.cr_fid1", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_fid2, + { "Cr Fid2", "lustre.mdt_rec_create.cr_fid2", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_old_handle, + { "Cr Old Handle", "lustre.mdt_rec_create.cr_old_handle", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_time, + { "Cr Time", "lustre.mdt_rec_create.cr_time",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_rdev, + { "Cr Rdev", "lustre.mdt_rec_create.cr_rdev", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_ioepoch, + { "Cr Ioepoch", "lustre.mdt_rec_create.cr_ioepoch", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_padding_1, + { "Cr Padding 1", "lustre.mdt_rec_create.cr_padding_1", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_mode, + { "Cr Mode", "lustre.mdt_rec_create.cr_mode", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_bias, + { "Cr Bias", "lustre.mdt_rec_create.cr_bias", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_flags_l, + { "Cr Flags L", "lustre.mdt_rec_create.cr_flags_l", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_flags_h, + { "Cr Flags H", "lustre.mdt_rec_create.cr_flags_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_padding_3, + { "Cr Padding 3", "lustre.mdt_rec_create.cr_padding_3", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_create_cr_padding_4, + { "Cr Padding 4", "lustre.mdt_rec_create.cr_padding_4", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + + { &hf_lustre_mdt_rec_link, + { "mdt rec link", "lustre.mdt_rec_link", FT_NONE, BASE_NONE, NULL , 0 , "", HFILL}}, + { &hf_lustre_mdt_rec_link_lk_opcode, + { "Lk Opcode", "lustre.mdt_rec_link.lk_opcode", FT_UINT32, BASE_DEC,VALS(lustre_mds_reint_t_vals) , 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_cap, + { "Lk Cap", "lustre.mdt_rec_link.lk_cap", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_fsuid, + { "Lk Fsuid", "lustre.mdt_rec_link.lk_fsuid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_fsuid_h, + { "Lk Fsuid H", "lustre.mdt_rec_link.lk_fsuid_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_fsgid, + { "Lk Fsgid", "lustre.mdt_rec_link.lk_fsgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_fsgid_h, + { "Lk Fsgid H", "lustre.mdt_rec_link.lk_fsgid_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_suppgid1, + { "Lk Suppgid1", "lustre.mdt_rec_link.lk_suppgid1", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_suppgid1_h, + { "Lk Suppgid1 H", "lustre.mdt_rec_link.lk_suppgid1_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_suppgid2, + { "Lk Suppgid2", "lustre.mdt_rec_link.lk_suppgid2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_suppgid2_h, + { "Lk Suppgid2 H", "lustre.mdt_rec_link.lk_suppgid2_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_fid1, + { "Lk Fid1", "lustre.mdt_rec_link.lk_fid1", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_fid2, + { "Lk Fid2", "lustre.mdt_rec_link.lk_fid2", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_time, + { "Lk Time", "lustre.mdt_rec_link.lk_time",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_padding_1, + { "Lk Padding 1", "lustre.mdt_rec_link.lk_padding_1", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_padding_2, + { "Lk Padding 2", "lustre.mdt_rec_link.lk_padding_2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_padding_3, + { "Lk Padding 3", "lustre.mdt_rec_link.lk_padding_3", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_padding_4, + { "Lk Padding 4", "lustre.mdt_rec_link.lk_padding_4", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_bias, + { "Lk Bias", "lustre.mdt_rec_link.lk_bias", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_padding_5, + { "Lk Padding 5", "lustre.mdt_rec_link.lk_padding_5", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_padding_6, + { "Lk Padding 6", "lustre.mdt_rec_link.lk_padding_6", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_padding_7, + { "Lk Padding 7", "lustre.mdt_rec_link.lk_padding_7", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_padding_8, + { "Lk Padding 8", "lustre.mdt_rec_link.lk_padding_8", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_link_lk_padding_9, + { "Lk Padding 9", "lustre.mdt_rec_link.lk_padding_9", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + + { &hf_lustre_mdt_rec_unlink, + { "mdt rec unlink", "lustre.mdt_rec_unlink", FT_NONE, BASE_NONE, NULL , 0 , "", HFILL}}, + { &hf_lustre_mdt_rec_unlink_ul_opcode, + { "Ul Opcode", "lustre.mdt_rec_unlink.ul_opcode", FT_UINT32, BASE_DEC, VALS(lustre_mds_reint_t_vals) , 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_cap, + { "Ul Cap", "lustre.mdt_rec_unlink.ul_cap", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_fsuid, + { "Ul Fsuid", "lustre.mdt_rec_unlink.ul_fsuid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_fsuid_h, + { "Ul Fsuid H", "lustre.mdt_rec_unlink.ul_fsuid_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_fsgid, + { "Ul Fsgid", "lustre.mdt_rec_unlink.ul_fsgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_fsgid_h, + { "Ul Fsgid H", "lustre.mdt_rec_unlink.ul_fsgid_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_suppgid1, + { "Ul Suppgid1", "lustre.mdt_rec_unlink.ul_suppgid1", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_suppgid1_h, + { "Ul Suppgid1 H", "lustre.mdt_rec_unlink.ul_suppgid1_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_suppgid2, + { "Ul Suppgid2", "lustre.mdt_rec_unlink.ul_suppgid2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_suppgid2_h, + { "Ul Suppgid2 H", "lustre.mdt_rec_unlink.ul_suppgid2_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_fid1, + { "Ul Fid1", "lustre.mdt_rec_unlink.ul_fid1", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_fid2, + { "Ul Fid2", "lustre.mdt_rec_unlink.ul_fid2", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_time, + { "Ul Time", "lustre.mdt_rec_unlink.ul_time",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_padding_2, + { "Ul Padding 2", "lustre.mdt_rec_unlink.ul_padding_2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_padding_3, + { "Ul Padding 3", "lustre.mdt_rec_unlink.ul_padding_3", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_padding_4, + { "Ul Padding 4", "lustre.mdt_rec_unlink.ul_padding_4", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_padding_5, + { "Ul Padding 5", "lustre.mdt_rec_unlink.ul_padding_5", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_bias, + { "Ul Bias", "lustre.mdt_rec_unlink.ul_bias", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_mode, + { "Ul Mode", "lustre.mdt_rec_unlink.ul_mode", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_padding_6, + { "Ul Padding 6", "lustre.mdt_rec_unlink.ul_padding_6", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_padding_7, + { "Ul Padding 7", "lustre.mdt_rec_unlink.ul_padding_7", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_padding_8, + { "Ul Padding 8", "lustre.mdt_rec_unlink.ul_padding_8", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_unlink_ul_padding_9, + { "Ul Padding 9", "lustre.mdt_rec_unlink.ul_padding_9", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + + { &hf_lustre_mdt_rec_rename, + { "mdt rec rename", "lustre.mdt_rec_rename", FT_NONE, BASE_NONE, NULL , 0 , "", HFILL}}, + { &hf_lustre_mdt_rec_rename_rn_opcode, + { "Rn Opcode", "lustre.mdt_rec_rename.rn_opcode", FT_UINT32, BASE_DEC, VALS(lustre_mds_reint_t_vals) , 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_cap, + { "Rn Cap", "lustre.mdt_rec_rename.rn_cap", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_fsuid, + { "Rn Fsuid", "lustre.mdt_rec_rename.rn_fsuid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_fsuid_h, + { "Rn Fsuid H", "lustre.mdt_rec_rename.rn_fsuid_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_fsgid, + { "Rn Fsgid", "lustre.mdt_rec_rename.rn_fsgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_fsgid_h, + { "Rn Fsgid H", "lustre.mdt_rec_rename.rn_fsgid_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_suppgid1, + { "Rn Suppgid1", "lustre.mdt_rec_rename.rn_suppgid1", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_suppgid1_h, + { "Rn Suppgid1 H", "lustre.mdt_rec_rename.rn_suppgid1_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_suppgid2, + { "Rn Suppgid2", "lustre.mdt_rec_rename.rn_suppgid2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_suppgid2_h, + { "Rn Suppgid2 H", "lustre.mdt_rec_rename.rn_suppgid2_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_fid1, + { "Rn Fid1", "lustre.mdt_rec_rename.rn_fid1", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_fid2, + { "Rn Fid2", "lustre.mdt_rec_rename.rn_fid2", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_time, + { "Rn Time", "lustre.mdt_rec_rename.rn_time",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_padding_1, + { "Rn Padding 1", "lustre.mdt_rec_rename.rn_padding_1", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_padding_2, + { "Rn Padding 2", "lustre.mdt_rec_rename.rn_padding_2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_padding_3, + { "Rn Padding 3", "lustre.mdt_rec_rename.rn_padding_3", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_padding_4, + { "Rn Padding 4", "lustre.mdt_rec_rename.rn_padding_4", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_bias, + { "Rn Bias", "lustre.mdt_rec_rename.rn_bias", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_mode, + { "Rn Mode", "lustre.mdt_rec_rename.rn_mode", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_padding_5, + { "Rn Padding 5", "lustre.mdt_rec_rename.rn_padding_5", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_padding_6, + { "Rn Padding 6", "lustre.mdt_rec_rename.rn_padding_6", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_padding_7, + { "Rn Padding 7", "lustre.mdt_rec_rename.rn_padding_7", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_rename_rn_padding_8, + { "Rn Padding 8", "lustre.mdt_rec_rename.rn_padding_8", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + + { &hf_lustre_mdt_rec_setxattr, + { "mdt rec setxattr", "lustre.mdt_rec_setxattr", FT_NONE, BASE_NONE, NULL , 0 , "", HFILL}}, + { &hf_lustre_mdt_rec_setxattr_sx_opcode, + { "Sx Opcode", "lustre.mdt_rec_setxattr.sx_opcode", FT_UINT32, BASE_DEC, VALS(lustre_mds_reint_t_vals), 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_cap, + { "Sx Cap", "lustre.mdt_rec_setxattr.sx_cap", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_fsuid, + { "Sx Fsuid", "lustre.mdt_rec_setxattr.sx_fsuid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_fsuid_h, + { "Sx Fsuid H", "lustre.mdt_rec_setxattr.sx_fsuid_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_fsgid, + { "Sx Fsgid", "lustre.mdt_rec_setxattr.sx_fsgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_fsgid_h, + { "Sx Fsgid H", "lustre.mdt_rec_setxattr.sx_fsgid_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_suppgid1, + { "Sx Suppgid1", "lustre.mdt_rec_setxattr.sx_suppgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_suppgid1_h, + { "Sx Suppgid1 H", "lustre.mdt_rec_setxattr.sx_suppgid_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_suppgid2, + { "Sx Suppgid2", "lustre.mdt_rec_setxattr.sx_suppgid2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_suppgid2_h, + { "Sx Suppgid2 H", "lustre.mdt_rec_setxattr.sx_suppgid2_h", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_fid, + { "Sx Fid", "lustre.mdt_rec_setxattr.sx_fid", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_padding_1, + { "Sx Padding 1", "lustre.mdt_rec_setxattr.sx_padding_1", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_padding_2, + { "Sx Padding 2", "lustre.mdt_rec_setxattr.sx_padding_2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_padding_3, + { "Sx Padding 3", "lustre.mdt_rec_setxattr.sx_padding_3", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_valid, + { "Sx Valid", "lustre.mdt_rec_setxattr.sx_valid", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_time, + { "Sx Time", "lustre.mdt_rec_setxattr.sx_time",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_padding_5, + { "Sx Padding 5", "lustre.mdt_rec_setxattr.sx_padding_5", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_padding_6, + { "Sx Padding 6", "lustre.mdt_rec_setxattr.sx_padding_6", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_padding_7, + { "Sx Padding 7", "lustre.mdt_rec_setxattr.sx_padding_7", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_size, + { "Sx Size", "lustre.mdt_rec_setxattr.sx_size", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_flgas, + { "Sx Flags", "lustre.mdt_rec_setxattr.sx_flags", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_padding_8, + { "Sx Padding 8", "lustre.mdt_rec_setxattr.sx_padding_8", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_padding_9, + { "Sx Padding 9", "lustre.mdt_rec_setxattr.sx_padding_9", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_padding_10, + { "Sx Padding 10", "lustre.mdt_rec_setxattr.sx_padding_10", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_mdt_rec_setxattr_sx_padding_11, + { "Sx Padding 11", "lustre.mdt_rec_setxattr.sx_padding_11", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, + + { &hf_lustre_lustre_handle_cookie, { "Cookie", "lustre.lustre_handle.cookie", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_suppgid, - { "Suppgid", "lustre.mds_body.suppgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_size, - { "Size", "lustre.mds_body.size", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_eadatasize, - { "Eadatasize", "lustre.mds_body.eadatasize", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_body_capability, - { "Capability", "lustre.mds_body.capability", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ptlrpc_body_pb_last_committed, + { &hf_lustre_ptlrpc_body_pb_last_committed, { "Pb Last Committed", "lustre.ptlrpc_body.pb_last_committed", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ptlrpc_body_pb_version, + { &hf_lustre_ptlrpc_body_pb_version, { "Pb Version", "lustre.ptlrpc_body.pb_version", FT_UINT32, BASE_DEC, NULL, ~LUSTRE_VERSION_MASK, "", HFILL }}, - { &hf_lustre_lustre_msg_v1_lm_bufcount, + { &hf_lustre_lustre_msg_v1_lm_bufcount, { "Lm Bufcount", "lustre.lustre_msg_v1.lm_bufcount", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_ioobj_ioo_id, + { &hf_lustre_obd_ioobj_ioo_id, { "Ioo Id", "lustre.obd_ioobj.ioo_id", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ptlrpc_body_pb_slv, + { &hf_lustre_ptlrpc_body_pb_slv, { "Pb Slv", "lustre.ptlrpc_body.pb_slv", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v1_lm_handle, + { &hf_lustre_lustre_msg_v1_lm_handle, { "Lm Handle", "lustre.lustre_msg_v1.lm_handle", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_ost_lvb_lvb_atime, + { &hf_lustre_ost_lvb_lvb_atime, { "Lvb Atime", "lustre.ost_lvb.lvb_atime",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ptlrpc_body_pb_timeout, + { &hf_lustre_ptlrpc_body_pb_timeout, { "Pb Timeout", "lustre.ptlrpc_body.pb_timeout", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_bavail, + { &hf_lustre_obd_statfs_os_bavail, { "Os Bavail", "lustre.obd_statfs.os_bavail", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_bsize, + { &hf_lustre_obd_statfs_os_bsize, { "Os Bsize", "lustre.obd_statfs.os_bsize", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v2_lm_repsize, + { &hf_lustre_lustre_msg_v2_lm_repsize, { "Lm Repsize", "lustre.lustre_msg_v2.lm_repsize", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_mds_md_v1_lmm_stripe_size, + { &hf_lustre_lov_mds_md_v1_lmm_stripe_size, { "Lmm Stripe Size", "lustre.lov_mds_md_v1.lmm_stripe_size", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v1_lm_last_xid, + { &hf_lustre_lustre_msg_v1_lm_last_xid, { "Lm Last Xid", "lustre.lustre_msg_v1.lm_last_xid", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ll_fid_f_type, + { &hf_lustre_ll_fid_f_type, { "F Type", "lustre.ll_fid.f_type", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v2_lm_cksum, + { &hf_lustre_lustre_msg_v2_lm_cksum, { "Lm Cksum", "lustre.lustre_msg_v2.lm_cksum", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v2_lm_buflens, + { &hf_lustre_lustre_msg_v2_lm_buflens, { "Lm Buflens", "lustre.lustre_msg_v2.lm_buflens", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v1_lm_status, + { &hf_lustre_lustre_msg_v1_lm_status, { "Lm Status", "lustre.lustre_msg_v1.lm_status", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v1_lm_type, + { &hf_lustre_lustre_msg_v1_lm_type, { "Lm Type", "lustre.lustre_msg_v1.lm_type", FT_UINT32, BASE_DEC, VALS(lustre_LMTypes), 0, "", HFILL }}, - { &hf_lustre_niobuf_remote_len, + { &hf_lustre_niobuf_remote_len, { "Len", "lustre.niobuf_remote.len", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_mds_md_v1_lmm_magic, + { &hf_lustre_lov_mds_md_v1_lmm_magic, { "Lmm Magic", "lustre.lov_mds_md_v1.lmm_magic", FT_UINT32, BASE_HEX, VALS(lustre_lov_magic) , 0, "", HFILL }}, - { &hf_lustre_ptlrpc_body_pb_op_flags, + { &hf_lustre_ptlrpc_body_pb_op_flags, { "Pb Op Flags", "lustre.ptlrpc_body.pb_op_flags", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ost_lvb_lvb_ctime, + { &hf_lustre_ost_lvb_lvb_ctime, { "Lvb Ctime", "lustre.ost_lvb.lvb_ctime",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ptlrpc_body_pb_type, + { &hf_lustre_ptlrpc_body_pb_type, { "Pb Type", "lustre.ptlrpc_body.pb_type", FT_UINT32, BASE_DEC, VALS(lustre_LMTypes), 0, "", HFILL }}, - { &hf_lustre_obd_connect_data_ocd_nllg, + { &hf_lustre_obd_connect_data_ocd_nllg, { "Ocd Nllg", "lustre.obd_connect_data.ocd_nllg", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_connect_data_ocd_nllu, + { &hf_lustre_obd_connect_data_ocd_nllu, { "Ocd Nllu", "lustre.obd_connect_data.ocd_nllu", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ll_fid_generation, + { &hf_lustre_ll_fid_generation, { "Generation", "lustre.ll_fid.generation", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ost_lvb_lvb_mtime, + { &hf_lustre_ost_lvb_lvb_mtime, { "Lvb Mtime", "lustre.ost_lvb.lvb_mtime",FT_ABSOLUTE_TIME, BASE_NONE, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_connect_data_ocd_ibits_known, + { &hf_lustre_obd_connect_data_ocd_ibits_known, { "Ocd Ibits Known", "lustre.obd_connect_data.ocd_ibits_known", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v2_lm_padding_3, + { &hf_lustre_lustre_msg_v2_lm_padding_3, { "Lm Padding 3", "lustre.lustre_msg_v2.lm_padding_3", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ptlrpc_body_pb_flags, + { &hf_lustre_ptlrpc_body_pb_flags, { "Pb Flags", "lustre.ptlrpc_body.pb_flags", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_spare4, + { &hf_lustre_obd_statfs_os_spare4, { "Os Spare4", "lustre.obd_statfs.os_spare4", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_connect_data_ocd_group, + { &hf_lustre_obd_connect_data_ocd_group, { "Ocd Group", "lustre.obd_connect_data.ocd_group", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_ost_data_v1_l_object_seq, + { &hf_lustre_lov_ost_data_v1_l_object_seq, { "L Object SEQ", "lustre.lov_ost_data_v1.l_object_seq", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_mds_md_v1_lmm_object_seq, + { &hf_lustre_lov_mds_md_v1_lmm_object_seq, { "Lmm Object SEQ", "lustre.lov_mds_md_v1.lmm_object_seq", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_connect_data_ocd_brw_size, + { &hf_lustre_obd_connect_data_ocd_brw_size, { "Ocd Brw Size", "lustre.obd_connect_data.ocd_brw_size", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ptlrpc_body_pb_limit, + { &hf_lustre_ptlrpc_body_pb_limit, { "Pb Limit", "lustre.ptlrpc_body.pb_limit", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_maxbytes, + { &hf_lustre_obd_statfs_os_maxbytes, { "Os Maxbytes", "lustre.obd_statfs.os_maxbytes", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_spare5, + { &hf_lustre_obd_statfs_os_spare5, { "Os Spare5", "lustre.obd_statfs.os_spare5", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v2_lm_flags, + { &hf_lustre_lustre_msg_v2_lm_flags, { "Lm Flags", "lustre.lustre_msg_v2.lm_flags", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_ffree, + { &hf_lustre_obd_statfs_os_ffree, { "Os Ffree", "lustre.obd_statfs.os_ffree", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_files, + { &hf_lustre_obd_statfs_os_files, { "Os Files", "lustre.obd_statfs.os_files", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_mds_md_v1_lmm_stripe_count, + { &hf_lustre_lov_mds_md_v1_lmm_stripe_count, { "Lmm Stripe Count", "lustre.lov_mds_md_v1.lmm_stripe_count", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v1_lm_flags, + { &hf_lustre_lustre_msg_v1_lm_flags, { "Lm Flags", "lustre.lustre_msg_v1.lm_flags", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v1_lm_last_committed, + { &hf_lustre_lustre_msg_v1_lm_last_committed, { "Lm Last Committed", "lustre.lustre_msg_v1.lm_last_committed", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_spare9, + { &hf_lustre_obd_statfs_os_spare9, { "Os Spare9", "lustre.obd_statfs.os_spare9", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_connect_data_ocd_index, + { &hf_lustre_obd_connect_data_ocd_index, { "Ocd Index", "lustre.obd_connect_data.ocd_index", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v1_lm_buflens, + { &hf_lustre_lustre_msg_v1_lm_buflens, { "Lm Buflens", "lustre.lustre_msg_v1.lm_buflens", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_spare1, + { &hf_lustre_obd_statfs_os_spare1, { "Os Spare1", "lustre.obd_statfs.os_spare1", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_spare8, + { &hf_lustre_obd_statfs_os_spare8, { "Os Spare8", "lustre.obd_statfs.os_spare8", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v1_lm_conn_cnt, + { &hf_lustre_lustre_msg_v1_lm_conn_cnt, { "Lm Conn Cnt", "lustre.lustre_msg_v1.lm_conn_cnt", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ptlrpc_body_pb_transno, + { &hf_lustre_ptlrpc_body_pb_transno, { "Pb Transno", "lustre.ptlrpc_body.pb_transno", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ptlrpc_body_pb_service_time, + { &hf_lustre_ptlrpc_body_pb_service_time, { "Pb Service Time", "lustre.ptlrpc_body.pb_service_time",FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ptlrpc_body_pb_conn_cnt, + { &hf_lustre_ptlrpc_body_pb_conn_cnt, { "Pb Conn Cnt", "lustre.ptlrpc_body.pb_conn_cnt", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ptlrpc_body_pb_opc, + { &hf_lustre_ptlrpc_body_pb_opc, { "Pb Opc", "lustre.ptlrpc_body.pb_opc", FT_UINT32, BASE_DEC, VALS(lustre_op_codes), 0, "", HFILL }}, - { &hf_lustre_obd_connect_data_ocd_connect_flags, + { &hf_lustre_obd_connect_data_ocd_connect_flags, { "Ocd Connect Flags", "lustre.obd_connect_data.ocd_connect_flags", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_ost_data_v1_l_object_id, + { &hf_lustre_lov_ost_data_v1_l_object_id, { "L Object Id", "lustre.lov_ost_data_v1.l_object_id", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_ost_data_v1_l_ost_gen, + { &hf_lustre_lov_ost_data_v1_l_ost_gen, { "L Ost Gen", "lustre.lov_ost_data_v1.l_ost_gen", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_bfree, + { &hf_lustre_obd_statfs_os_bfree, { "Os Bfree", "lustre.obd_statfs.os_bfree", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_connect_data_ocd_version, + { &hf_lustre_obd_connect_data_ocd_version, { "Ocd Version", "lustre.obd_connect_data.ocd_version", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_mds_md_v1_lmm_objects, + { &hf_lustre_lov_mds_md_v1_lmm_objects, { "Lmm Objects", "lustre.lov_mds_md_v1.lmm_objects", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_status_req_flags, - { "Flags", "lustre.mds_status_req.flags", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_namelen, + { &hf_lustre_obd_statfs_os_namelen, { "Os Namelen", "lustre.obd_statfs.os_namelen", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_blocks, + { &hf_lustre_obd_statfs_os_blocks, { "Os Blocks", "lustre.obd_statfs.os_blocks", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v2_lm_secflvr, + { &hf_lustre_lustre_msg_v2_lm_secflvr, { "Lm Secflvr", "lustre.lustre_msg_v2.lm_secflvr", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v1_lm_transno, + { &hf_lustre_lustre_msg_v1_lm_transno, { "Lm Transno", "lustre.lustre_msg_v1.lm_transno", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_mds_md_v1_lmm_pattern, + { &hf_lustre_lov_mds_md_v1_lmm_pattern, { "Lmm Pattern", "lustre.lov_mds_md_v1.lmm_pattern", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v1_lm_opc, + { &hf_lustre_lustre_msg_v1_lm_opc, { "Lm Opc", "lustre.lustre_msg_v1.lm_opc", FT_UINT32, BASE_DEC, VALS(lustre_op_codes), 0, "", HFILL }}, - { &hf_lustre_obd_connect_data_ocd_grant, + { &hf_lustre_obd_connect_data_ocd_grant, { "Ocd Grant", "lustre.obd_connect_data.ocd_grant", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_ioobj_ioo_bufcnt, + { &hf_lustre_obd_ioobj_ioo_bufcnt, { "Ioo Bufcnt", "lustre.obd_ioobj.ioo_bufcnt", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v1_lm_version, + { &hf_lustre_lustre_msg_v1_lm_version, { "Lm Version", "lustre.lustre_msg_v1.lm_version", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_spare7, + { &hf_lustre_obd_statfs_os_spare7, { "Os Spare7", "lustre.obd_statfs.os_spare7", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_fsid, + { &hf_lustre_obd_statfs_os_fsid, { "Os Fsid", "lustre.obd_statfs.os_fsid", FT_UINT8, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_connect_data_ocd_cksum_types, + { &hf_lustre_obd_connect_data_ocd_cksum_types, { "Ocd Cksum Types", "lustre.obd_connect_data.ocd_cksum_types", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ost_lvb_lvb_size, + { &hf_lustre_ost_lvb_lvb_size, { "Lvb Size", "lustre.ost_lvb.lvb_size", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_type, + { &hf_lustre_obd_statfs_os_type, { "Os Type", "lustre.obd_statfs.os_type", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_spare6, + { &hf_lustre_obd_statfs_os_spare6, { "Os Spare6", "lustre.obd_statfs.os_spare6", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_state, + { &hf_lustre_obd_statfs_os_state, { "Os State", "lustre.obd_statfs.os_state", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_spare3, + { &hf_lustre_obd_statfs_os_spare3, { "Os Spare3", "lustre.obd_statfs.os_spare3", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v2_lm_magic, - { "Lm Magic", "lustre.lustre_msg_v2.lm_magic", FT_UINT32, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_mds_md_v1_lmm_object_id, + { &hf_lustre_lustre_msg_v2_lm_magic, + { "Lm Magic", "lustre.lustre_msg_v2.lm_magic", FT_UINT32, BASE_HEX, NULL, 0, "", HFILL }}, + { &hf_lustre_lov_mds_md_v1_lmm_object_id, { "Lmm Object Id", "lustre.lov_mds_md_v1.lmm_object_id", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ptlrpc_body_pb_last_seen, + { &hf_lustre_ptlrpc_body_pb_last_seen, { "Pb Last Seen", "lustre.ptlrpc_body.pb_last_seen", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, { &hf_lustre_obd_ioobj_ioo_type, /* TODO : create the corresponding value_string */ { "Ioo Type", "lustre.obd_ioobj.ioo_type", FT_UINT32, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_ptlrpc_body_pb_last_xid, + { &hf_lustre_ptlrpc_body_pb_last_xid, { "Pb Last Xid", "lustre.ptlrpc_body.pb_last_xid", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ptlrpc_body_pb_status, + { &hf_lustre_ptlrpc_body_pb_status, { "Pb Status", "lustre.ptlrpc_body.pb_status", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_niobuf_remote_flags, + { &hf_lustre_niobuf_remote_flags, { "Flags", "lustre.niobuf_remote.flags", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ll_fid_id, + { &hf_lustre_ll_fid_id, { "Id", "lustre.ll_fid.id", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ost_lvb_lvb_blocks, + { &hf_lustre_ost_lvb_lvb_blocks, { "Lvb Blocks", "lustre.ost_lvb.lvb_blocks", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v2_lm_padding_2, + { &hf_lustre_lustre_msg_v2_lm_padding_2, { "Lm Padding 2", "lustre.lustre_msg_v2.lm_padding_2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_connect_data_padding1, + { &hf_lustre_obd_connect_data_padding1, { "Padding1", "lustre.obd_connect_data.padding1", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_ost_data_v1_l_ost_idx, + { &hf_lustre_lov_ost_data_v1_l_ost_idx, { "L Ost Idx", "lustre.lov_ost_data_v1.l_ost_idx", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_connect_data_padding2, + { &hf_lustre_obd_connect_data_padding2, { "Padding2", "lustre.obd_connect_data.padding2", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_ioobj_ioo_seq, + { &hf_lustre_obd_ioobj_ioo_seq, { "Ioo Gr", "lustre.obd_ioobj.ioo_seq", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_niobuf_remote_offset, + { &hf_lustre_niobuf_remote_offset, { "Offset", "lustre.niobuf_remote.offset", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_status_req_repbuf, - { "Repbuf", "lustre.mds_status_req.repbuf", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_statfs_os_spare2, + { &hf_lustre_obd_statfs_os_spare2, { "Os Spare2", "lustre.obd_statfs.os_spare2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v2_lm_bufcount, + { &hf_lustre_lustre_msg_v2_lm_bufcount, { "Lm Bufcount", "lustre.lustre_msg_v2.lm_bufcount", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ptlrpc_body_pb_handle, + { &hf_lustre_ptlrpc_body_pb_handle, { "Pb Handle", "lustre.ptlrpc_body.pb_handle", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_connect_data_ocd_transno, + { &hf_lustre_obd_connect_data_ocd_transno, { "Ocd Transno", "lustre.obd_connect_data.ocd_transno", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lustre_msg_v1_lm_magic, + { &hf_lustre_lustre_msg_v1_lm_magic, { "Lm Magic", "lustre.lustre_msg_v1.lm_magic", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, { &hf_lustre_ptlrpc_body_pb, { "ptl rpc", "lustre.ptlrpc_body", FT_NONE, BASE_NONE, NULL , 0 , "", HFILL }}, - { &hf_lustre_mds_body, - { "mds body", "lustre.mds_body", FT_NONE, BASE_NONE, NULL , 0 , "", HFILL }}, - { &hf_lustre_mds_rec_create, - { "mds rec create", "lustre.mds_rec_create", FT_NONE, BASE_NONE, NULL , 0 , "", HFILL}}, - { &hf_lustre_mds_rec_link, - { "mds rec link", "lustre.mds_rec_link", FT_NONE, BASE_NONE, NULL , 0 , "", HFILL}}, - { &hf_lustre_mds_rec_unlink, - { "mds rec unlink", "lustre.mds_rec_unlink", FT_NONE, BASE_NONE, NULL , 0 , "", HFILL}}, { &hf_lustre_obd_uuid, { "obd uid name", "lustre.obd_uid", FT_STRING, BASE_NONE, NULL , 0 , "", HFILL}}, @@ -8740,327 +9971,249 @@ void proto_register_dcerpc_lustre(void) { "obd quotactl", "lustre.obd_quotacl", FT_NONE, BASE_NONE, NULL , 0 , "", HFILL }}, { &hf_lustre_quota_adjust_qunit, { "obd quota adjust qunit", "lustre.quota_adjust_qunit", FT_NONE, BASE_NONE, NULL , 0 , "", HFILL }}, - { &hf_lustre_llog_unlink_rec_lur_tail, + { &hf_lustre_llog_unlink_rec_lur_tail, { "Lur Tail", "lustre.llog_unlink_rec.lur_tail", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_size_change_rec_lsc_io_epoch, + { &hf_lustre_llog_size_change_rec_lsc_io_epoch, { "Lsc Io Epoch", "lustre.llog_size_change_rec.lsc_io_epoch", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mgs_target_info_mti_flags, + { &hf_lustre_mgs_target_info_mti_flags, { "Mti Flags", "lustre.mgs_target_info.mti_flags", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_reply_lock_policy_res1, + { &hf_lustre_ldlm_reply_lock_policy_res1, { "Lock Policy Res1", "lustre.ldlm_reply.lock_policy_res1", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_link_lk_fsuid, - { "Lk Fsuid", "lustre.mds_rec_link.lk_fsuid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llogd_body_lgd_len, + { &hf_lustre_llogd_body_lgd_len, { "Lgd Len", "lustre.llogd_body.lgd_len", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_qunit_data_old_qd_id, + { &hf_lustre_qunit_data_old_qd_id, { "Qd Id", "lustre.qunit_data_old.qd_id", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_logid_rec_padding1, + { &hf_lustre_llog_logid_rec_padding1, { "Padding1", "lustre.llog_logid_rec.padding1", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_quota_adjust_qunit_padding1, + { &hf_lustre_quota_adjust_qunit_padding1, { "Padding1", "lustre.quota_adjust_qunit.padding1", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_size_change_rec_lsc_fid, + { &hf_lustre_llog_size_change_rec_lsc_fid, { "Lsc Fid", "lustre.llog_size_change_rec.lsc_fid", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_rec_hdr_padding, + { &hf_lustre_llog_rec_hdr_padding, { "Padding", "lustre.llog_rec_hdr.padding", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_create_cr_time, - { "Cr Time", "lustre.mds_rec_create.cr_time",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_create_cr_padding_1, - { "Cr Padding 1", "lustre.mds_rec_create.cr_padding_1", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_nlink, + { &hf_lustre_obdo_o_nlink, { "O Nlink", "lustre.obdo.o_nlink", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_rename_rn_suppgid2, - { "Rn Suppgid2", "lustre.mds_rec_rename.rn_suppgid2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_link_lk_padding_4, - { "Lk Padding 4", "lustre.mds_rec_link.lk_padding_4", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_link_lk_cap, - { "Lk Cap", "lustre.mds_rec_link.lk_cap", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_extent_gid, + { &hf_lustre_ldlm_extent_gid, { "Gid", "lustre.ldlm_extent.gid", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_uid, + { &hf_lustre_obdo_o_uid, { "O Uid", "lustre.obdo.o_uid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_create_cr_padding_5, - { "Cr Padding 5", "lustre.mds_rec_create.cr_padding_5", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_xattr_name, + { &hf_lustre_mds_xattr_name, { "mds xattr name", "lustre.mds_xattr_name", FT_STRING, BASE_NONE, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_mds_md_v1, + { &hf_lustre_lov_mds_md_v1, { "lov mds md v1", "lustre.lov_mds_md_v1", FT_NONE, BASE_NONE, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_cookie, + { &hf_lustre_llog_cookie, { "llog cookie", "lustre.llog_cookie", FT_NONE, BASE_NONE, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_md_data, + { &hf_lustre_mds_md_data, { "mds md data", "lustre.mds_md_data", FT_NONE, BASE_NONE, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_reint_opcode, + { &hf_lustre_mds_reint_opcode, { "mds reint opcode", "lustre.mds_reint_opcode", FT_STRING, BASE_NONE, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_xattr_eadata, + { &hf_lustre_mds_xattr_eadata, { "mds xattr eadata", "lustre.mds_xattr_eadata", FT_NONE, BASE_NONE, NULL, 0, "", HFILL }}, - { &hf_lustre_reint_name, + { &hf_lustre_reint_name, { "mds reint name", "lustre.mds_reint_name", FT_STRING, BASE_NONE, NULL, 0, "", HFILL }}, - { &hf_lustre_reint_old_name, + { &hf_lustre_reint_old_name, { "mds reint old name", "lustre.mds_reint_old_name", FT_STRING, BASE_NONE, NULL, 0, "", HFILL }}, - { &hf_lustre_reint_new_name, + { &hf_lustre_reint_new_name, { "mds reint new name", "lustre.mds_reint_new_name", FT_STRING, BASE_NONE, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_valid, + { &hf_lustre_obdo_o_valid, { "O Valid", "lustre.obdo.o_valid", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_reply_lock_flags, + { &hf_lustre_ldlm_reply_lock_flags, { "Lock Flags", "lustre.ldlm_reply.lock_flags", FT_UINT32,BASE_HEX, NULL, 0, "", HFILL }}, - {&hf_lustre_ldlm_fl_lock_changed, {"LDLM_FL_LOCK_CHANGED", "lustre.ldlm_fl_lock_changed", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_LOCK_CHANGED, "", HFILL}}, - {&hf_lustre_ldlm_fl_block_granted, {"LDLM_FL_BLOCK_GRANTED", "lustre.ldlm_fl_block_granted", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_BLOCK_GRANTED, "", HFILL}}, - {&hf_lustre_ldlm_fl_block_conv, {"LDLM_FL_BLOCK_CONV", "lustre.ldlm_fl_block_conv", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_BLOCK_CONV, "", HFILL}}, - {&hf_lustre_ldlm_fl_block_wait, {"LDLM_FL_BLOCK_WAIT", "lustre.ldlm_fl_block_wait", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_BLOCK_WAIT, "", HFILL}}, - {&hf_lustre_ldlm_fl_cbpending, {"LDLM_FL_CBPENDING", "lustre.ldlm_fl_cbpending", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_CBPENDING, "", HFILL}}, - {&hf_lustre_ldlm_fl_ast_sent, {"LDLM_FL_AST_SENT", "lustre.ldlm_fl_ast_sent", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_AST_SENT, "", HFILL}}, - {&hf_lustre_ldlm_fl_wait_noreproc, {"LDLM_FL_WAIT_NOREPROC", "lustre.ldlm_fl_wait_noreproc", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_WAIT_NOREPROC, "", HFILL}}, - {&hf_lustre_ldlm_fl_cancel, {"LDLM_FL_CANCEL", "lustre.ldlm_fl_cancel", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_CANCEL, "", HFILL}}, - {&hf_lustre_ldlm_fl_replay, {"LDLM_FL_REPLAY", "lustre.ldlm_fl_replay", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_REPLAY, "", HFILL}}, - {&hf_lustre_ldlm_fl_intent_only, {"LDLM_FL_INTENT_ONLY", "lustre.ldlm_fl_intent_only", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_INTENT_ONLY, "", HFILL}}, - {&hf_lustre_ldlm_fl_local_only, {"LDLM_FL_LOCAL_ONLY", "lustre.ldlm_fl_local_only", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_LOCAL_ONLY, "", HFILL}}, - {&hf_lustre_ldlm_fl_failed, {"LDLM_FL_FAILED", "lustre.ldlm_fl_failed", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_FAILED, "", HFILL}}, - {&hf_lustre_ldlm_fl_has_intent, {"LDLM_FL_HAS_INTENT", "lustre.ldlm_fl_has_intent", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_HAS_INTENT, "", HFILL}}, - {&hf_lustre_ldlm_fl_canceling, {"LDLM_FL_CANCELING", "lustre.ldlm_fl_canceling", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_CANCELING, "", HFILL}}, - {&hf_lustre_ldlm_fl_local, {"LDLM_FL_LOCAL", "lustre.ldlm_fl_local", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_LOCAL, "", HFILL}}, - {&hf_lustre_ldlm_fl_warn, {"LDLM_FL_WARN", "lustre.ldlm_fl_warn", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_WARN, "", HFILL}}, - {&hf_lustre_ldlm_fl_discard_data, {"LDLM_FL_DISCARD_DATA", "lustre.ldlm_fl_discard_data", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_DISCARD_DATA, "", HFILL}}, - {&hf_lustre_ldlm_fl_no_timeout, {"LDLM_FL_NO_TIMEOUT", "lustre.ldlm_fl_no_timeout", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_NO_TIMEOUT, "", HFILL}}, - {&hf_lustre_ldlm_fl_block_nowait, {"LDLM_FL_BLOCK_NOWAIT", "lustre.ldlm_fl_block_nowait", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_BLOCK_NOWAIT, "", HFILL}}, - {&hf_lustre_ldlm_fl_test_lock, {"LDLM_FL_TEST_LOCK", "lustre.ldlm_fl_test_lock", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_TEST_LOCK, "", HFILL}}, - {&hf_lustre_ldlm_fl_lvb_ready, {"LDLM_FL_LVB_READY", "lustre.ldlm_fl_lvb_ready", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_LVB_READY, "", HFILL}}, - {&hf_lustre_ldlm_fl_kms_ignore, {"LDLM_FL_KMS_IGNORE", "lustre.ldlm_fl_kms_ignore", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_KMS_IGNORE, "", HFILL}}, - {&hf_lustre_ldlm_fl_no_lru, {"LDLM_FL_NO_LRU", "lustre.ldlm_fl_no_lru", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_NO_LRU, "", HFILL}}, - {&hf_lustre_ldlm_fl_cancel_on_block, {"LDLM_FL_CANCEL_ON_BLOCK", "lustre.ldlm_fl_cancel_on_block", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_CANCEL_ON_BLOCK, "", HFILL}}, - {&hf_lustre_ldlm_fl_cp_reqd, {"LDLM_FL_CP_REQD", "lustre.ldlm_fl_cp_reqd", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_CP_REQD, "", HFILL}}, - {&hf_lustre_ldlm_fl_cleaned, {"LDLM_FL_CLEANED", "lustre.ldlm_fl_cleaned", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_CLEANED, "", HFILL}}, - {&hf_lustre_ldlm_fl_atomic_cb, {"LDLM_FL_ATOMIC_CB", "lustre.ldlm_fl_atomic_cb", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_ATOMIC_CB, "", HFILL}}, - {&hf_lustre_ldlm_fl_bl_ast, {"LDLM_FL_BL_AST", "lustre.ldlm_fl_bl_ast", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_BL_AST, "", HFILL}}, - {&hf_lustre_ldlm_fl_bl_done, {"LDLM_FL_BL_DONE", "lustre.ldlm_fl_bl_done", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_BL_DONE, "", HFILL}}, - {&hf_lustre_ldlm_fl_deny_on_contention, {"LDLM_FL_DENY_ON_CONTENTION", "lustre.ldlm_fl_deny_on_contention", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_DENY_ON_CONTENTION, "", HFILL}}, - {&hf_lustre_ldlm_ast_discard_data, {"LDLM_AST_DISCARD_DATA", "lustre.ldlm_ast_discard_data", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_AST_DISCARD_DATA, "", HFILL}}, - - - { &hf_lustre_mds_rec_link_lk_padding_3, - { "Lk Padding 3", "lustre.mds_rec_link.lk_padding_3", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_misc, + {&hf_lustre_ldlm_fl_lock_changed, {"LDLM_FL_LOCK_CHANGED", "lustre.ldlm_fl_lock_changed", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_LOCK_CHANGED, "", HFILL}}, + {&hf_lustre_ldlm_fl_block_granted, {"LDLM_FL_BLOCK_GRANTED", "lustre.ldlm_fl_block_granted", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_BLOCK_GRANTED, "", HFILL}}, + {&hf_lustre_ldlm_fl_block_conv, {"LDLM_FL_BLOCK_CONV", "lustre.ldlm_fl_block_conv", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_BLOCK_CONV, "", HFILL}}, + {&hf_lustre_ldlm_fl_block_wait, {"LDLM_FL_BLOCK_WAIT", "lustre.ldlm_fl_block_wait", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_BLOCK_WAIT, "", HFILL}}, + {&hf_lustre_ldlm_fl_cbpending, {"LDLM_FL_CBPENDING", "lustre.ldlm_fl_cbpending", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_CBPENDING, "", HFILL}}, + {&hf_lustre_ldlm_fl_ast_sent, {"LDLM_FL_AST_SENT", "lustre.ldlm_fl_ast_sent", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_AST_SENT, "", HFILL}}, + {&hf_lustre_ldlm_fl_wait_noreproc, {"LDLM_FL_WAIT_NOREPROC", "lustre.ldlm_fl_wait_noreproc", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_WAIT_NOREPROC, "", HFILL}}, + {&hf_lustre_ldlm_fl_cancel, {"LDLM_FL_CANCEL", "lustre.ldlm_fl_cancel", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_CANCEL, "", HFILL}}, + {&hf_lustre_ldlm_fl_replay, {"LDLM_FL_REPLAY", "lustre.ldlm_fl_replay", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_REPLAY, "", HFILL}}, + {&hf_lustre_ldlm_fl_intent_only, {"LDLM_FL_INTENT_ONLY", "lustre.ldlm_fl_intent_only", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_INTENT_ONLY, "", HFILL}}, + {&hf_lustre_ldlm_fl_local_only, {"LDLM_FL_LOCAL_ONLY", "lustre.ldlm_fl_local_only", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_LOCAL_ONLY, "", HFILL}}, + {&hf_lustre_ldlm_fl_failed, {"LDLM_FL_FAILED", "lustre.ldlm_fl_failed", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_FAILED, "", HFILL}}, + {&hf_lustre_ldlm_fl_has_intent, {"LDLM_FL_HAS_INTENT", "lustre.ldlm_fl_has_intent", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_HAS_INTENT, "", HFILL}}, + {&hf_lustre_ldlm_fl_canceling, {"LDLM_FL_CANCELING", "lustre.ldlm_fl_canceling", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_CANCELING, "", HFILL}}, + {&hf_lustre_ldlm_fl_local, {"LDLM_FL_LOCAL", "lustre.ldlm_fl_local", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_LOCAL, "", HFILL}}, + {&hf_lustre_ldlm_fl_warn, {"LDLM_FL_WARN", "lustre.ldlm_fl_warn", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_WARN, "", HFILL}}, + {&hf_lustre_ldlm_fl_discard_data, {"LDLM_FL_DISCARD_DATA", "lustre.ldlm_fl_discard_data", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_DISCARD_DATA, "", HFILL}}, + {&hf_lustre_ldlm_fl_no_timeout, {"LDLM_FL_NO_TIMEOUT", "lustre.ldlm_fl_no_timeout", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_NO_TIMEOUT, "", HFILL}}, + {&hf_lustre_ldlm_fl_block_nowait, {"LDLM_FL_BLOCK_NOWAIT", "lustre.ldlm_fl_block_nowait", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_BLOCK_NOWAIT, "", HFILL}}, + {&hf_lustre_ldlm_fl_test_lock, {"LDLM_FL_TEST_LOCK", "lustre.ldlm_fl_test_lock", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_TEST_LOCK, "", HFILL}}, + {&hf_lustre_ldlm_fl_lvb_ready, {"LDLM_FL_LVB_READY", "lustre.ldlm_fl_lvb_ready", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_LVB_READY, "", HFILL}}, + {&hf_lustre_ldlm_fl_kms_ignore, {"LDLM_FL_KMS_IGNORE", "lustre.ldlm_fl_kms_ignore", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_KMS_IGNORE, "", HFILL}}, + {&hf_lustre_ldlm_fl_no_lru, {"LDLM_FL_NO_LRU", "lustre.ldlm_fl_no_lru", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_NO_LRU, "", HFILL}}, + {&hf_lustre_ldlm_fl_cancel_on_block, {"LDLM_FL_CANCEL_ON_BLOCK", "lustre.ldlm_fl_cancel_on_block", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_CANCEL_ON_BLOCK, "", HFILL}}, + {&hf_lustre_ldlm_fl_cp_reqd, {"LDLM_FL_CP_REQD", "lustre.ldlm_fl_cp_reqd", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_CP_REQD, "", HFILL}}, + {&hf_lustre_ldlm_fl_cleaned, {"LDLM_FL_CLEANED", "lustre.ldlm_fl_cleaned", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_CLEANED, "", HFILL}}, + {&hf_lustre_ldlm_fl_atomic_cb, {"LDLM_FL_ATOMIC_CB", "lustre.ldlm_fl_atomic_cb", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_ATOMIC_CB, "", HFILL}}, + {&hf_lustre_ldlm_fl_bl_ast, {"LDLM_FL_BL_AST", "lustre.ldlm_fl_bl_ast", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_BL_AST, "", HFILL}}, + {&hf_lustre_ldlm_fl_bl_done, {"LDLM_FL_BL_DONE", "lustre.ldlm_fl_bl_done", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_BL_DONE, "", HFILL}}, + {&hf_lustre_ldlm_fl_deny_on_contention, {"LDLM_FL_DENY_ON_CONTENTION", "lustre.ldlm_fl_deny_on_contention", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_FL_DENY_ON_CONTENTION, "", HFILL}}, + {&hf_lustre_ldlm_ast_discard_data, {"LDLM_AST_DISCARD_DATA", "lustre.ldlm_ast_discard_data", FT_BOOLEAN, 32, TFS(&flags_set_truth), LDLM_AST_DISCARD_DATA, "", HFILL}}, + + + { &hf_lustre_obdo_o_misc, { "O Misc", "lustre.obdo.o_misc", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_setattr_sa_suppgid, - { "Sa Suppgid", "lustre.mds_rec_setattr.sa_suppgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_setattr_sa_attr_flags, - { "Sa Attr Flags", "lustre.mds_rec_setattr.sa_attr_flags", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_rename_rn_padding_2, - { "Rn Padding 2", "lustre.mds_rec_rename.rn_padding_2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_request_lock_handle, + { &hf_lustre_ldlm_request_lock_handle, { "Lock Handle", "lustre.ldlm_request.lock_handle", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_logid_lgl_oid, + { &hf_lustre_llog_logid_lgl_oid, { "Lgl Oid", "lustre.llog_logid.lgl_oid", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_inodebits_bits, + { &hf_lustre_ldlm_inodebits_bits, { "Bits", "lustre.ldlm_inodebits.bits", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_log_hdr_llh_count, + { &hf_lustre_llog_log_hdr_llh_count, { "Llh Count", "lustre.llog_log_hdr.llh_count", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_unlink_ul_padding_4, - { "Ul Padding 4", "lustre.mds_rec_unlink.ul_padding_4", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_gen_rec_lgr_tail, + { &hf_lustre_llog_gen_rec_lgr_tail, { "Lgr Tail", "lustre.llog_gen_rec.lgr_tail", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_catid_lci_padding3, + { &hf_lustre_llog_catid_lci_padding3, { "Lci Padding3", "lustre.llog_catid.lci_padding3", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_qunit_data_qd_qunit, + { &hf_lustre_qunit_data_qd_qunit, { "Qd Qunit", "lustre.qunit_data.qd_qunit", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_unlink_ul_fid1, - { "Ul Fid1", "lustre.mds_rec_unlink.ul_fid1", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_setattr_rec_padding, + { &hf_lustre_llog_setattr_rec_padding, { "Padding", "lustre.llog_setattr_rec.padding", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_rename_rn_opcode, - { "Rn Opcode", "lustre.mds_rec_rename.rn_opcode", FT_UINT32, BASE_DEC, VALS(lustre_mds_reint_t_vals) , 0, "", HFILL }}, - { &hf_lustre_mds_rec_create_cr_flags, - { "Cr Flags", "lustre.mds_rec_create.cr_flags", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_rename_rn_fid1, - { "Rn Fid1", "lustre.mds_rec_rename.rn_fid1", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_cookie_lgc_lgl, + { &hf_lustre_llog_cookie_lgc_lgl, { "Lgc Lgl", "lustre.llog_cookie.lgc_lgl", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_quotactl_qc_dqinfo, + { &hf_lustre_obd_quotactl_qc_dqinfo, { "Qc Dqinfo", "lustre.obd_quotactl.qc_dqinfo", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_log_hdr_llh_bitmap, + { &hf_lustre_llog_log_hdr_llh_bitmap, { "Llh Bitmap", "lustre.llog_log_hdr.llh_bitmap", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_setattr_sa_size, - { "Sa Size", "lustre.mds_rec_setattr.sa_size", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_rename_rn_suppgid1, - { "Rn Suppgid1", "lustre.mds_rec_rename.rn_suppgid1", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_quotactl_qc_stat, + { &hf_lustre_obd_quotactl_qc_stat, { "Qc Stat", "lustre.obd_quotactl.qc_stat", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_qunit_data_old2_qd_id, + { &hf_lustre_qunit_data_old2_qd_id, { "Qd Id", "lustre.qunit_data_old2.qd_id", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_logid_rec_padding2, + { &hf_lustre_llog_logid_rec_padding2, { "Padding2", "lustre.llog_logid_rec.padding2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_unlink_ul_mode, - { "Ul Mode", "lustre.mds_rec_unlink.ul_mode", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_orphan_rec_lor_tail, + { &hf_lustre_llog_orphan_rec_lor_tail, { "Lor Tail", "lustre.llog_orphan_rec.lor_tail", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_logid_rec_padding5, + { &hf_lustre_llog_logid_rec_padding5, { "Padding5", "lustre.llog_logid_rec.padding5", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_create_cr_fsgid, - { "Cr Fsgid", "lustre.mds_rec_create.cr_fsgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, /*-------------------------------------------------------------------------------------------------------------*/ /*all this flags are uint64, but I don't find the way to use something like TFS() with a Uint64*/ - { &hf_lustre_ldlm_intent_opc_open, + { &hf_lustre_ldlm_intent_opc_open, { "open", "lustre.ldlm_intent.opc_open", FT_BOOLEAN, 32, TFS(&flags_set_truth), IT_OPEN, "", HFILL}}, - { &hf_lustre_ldlm_intent_opc_creat, + { &hf_lustre_ldlm_intent_opc_creat, { "creat", "lustre.ldlm_intent.opc_creat", FT_BOOLEAN, 32, TFS(&flags_set_truth), IT_CREAT , "", HFILL}}, - { &hf_lustre_ldlm_intent_opc_readdir, + { &hf_lustre_ldlm_intent_opc_readdir, { "readdir", "lustre.ldlm_intent.opc_readdir", FT_BOOLEAN, 32, TFS(&flags_set_truth), IT_READDIR , "", HFILL}}, - { &hf_lustre_ldlm_intent_opc_getattr, + { &hf_lustre_ldlm_intent_opc_getattr, { "getattr", "lustre.ldlm_intent.opc_getattr", FT_BOOLEAN, 32, TFS(&flags_set_truth), IT_GETATTR, "", HFILL}}, - { &hf_lustre_ldlm_intent_opc_lookup, + { &hf_lustre_ldlm_intent_opc_lookup, { "lookup", "lustre.ldlm_intent.opc_lookup", FT_BOOLEAN, 32, TFS(&flags_set_truth), IT_LOOKUP , "", HFILL}}, - { &hf_lustre_ldlm_intent_opc_unlink, + { &hf_lustre_ldlm_intent_opc_unlink, { "unlink", "lustre.ldlm_intent.opc_unlink", FT_BOOLEAN, 32, TFS(&flags_set_truth), IT_UNLINK , "", HFILL}}, - { &hf_lustre_ldlm_intent_opc_getxattr, + { &hf_lustre_ldlm_intent_opc_getxattr, { "getxattr", "lustre.ldlm_intent.opc_getxattr", FT_BOOLEAN, 32, TFS(&flags_set_truth), IT_GETXATTR , "", HFILL}}, - { &hf_lustre_ldlm_intent_opc_exec, + { &hf_lustre_ldlm_intent_opc_exec, { "exec", "lustre.ldlm_intent.opc_exec", FT_BOOLEAN, 32, TFS(&flags_set_truth), IT_EXEC , "", HFILL}}, - { &hf_lustre_ldlm_intent_opc_pin, + { &hf_lustre_ldlm_intent_opc_pin, { "pin", "lustre.ldlm_intent.opc_pin", FT_BOOLEAN, 32, TFS(&flags_set_truth), IT_PIN , "", HFILL}}, /*-------------------------------------------------------------------------------------------------------------*/ - { &hf_lustre_ldlm_intent_opc, + { &hf_lustre_ldlm_intent_opc, { "intent opcode", "lustre.ldlm_intent.opc", FT_NONE, BASE_NONE, NULL, 0, "", HFILL}}, - { &hf_lustre_llog_rec_hdr_lrh_type, + { &hf_lustre_llog_rec_hdr_lrh_type, { "Lrh Type", "lustre.llog_rec_hdr.lrh_type", FT_UINT32, BASE_HEX, VALS(lustre_llog_op_type), 0, "", HFILL }}, - { &hf_lustre_mds_rec_link_lk_fsgid, - { "Lk Fsgid", "lustre.mds_rec_link.lk_fsgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_rec_hdr_lrh_len, + { &hf_lustre_llog_rec_hdr_lrh_len, { "Lrh Len", "lustre.llog_rec_hdr.lrh_len", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_setattr_rec_lsr_uid, + { &hf_lustre_llog_setattr_rec_lsr_uid, { "Lsr Uid", "lustre.llog_setattr_rec.lsr_uid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_desc_ld_padding_1, + { &hf_lustre_lov_desc_ld_padding_1, { "Ld Padding 1", "lustre.lov_desc.ld_padding_1", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_padding_4, + { &hf_lustre_obdo_o_padding_4, { "O Padding 4", "lustre.obdo.o_padding_4", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mgs_target_info_padding, + { &hf_lustre_mgs_target_info_padding, { "Padding", "lustre.mgs_target_info.padding", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_quotactl_qc_dqblk, + { &hf_lustre_obd_quotactl_qc_dqblk, { "Qc Dqblk", "lustre.obd_quotactl.qc_dqblk", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llogd_conn_body_lgdc_gen, + { &hf_lustre_llogd_conn_body_lgdc_gen, { "Lgdc Gen", "lustre.llogd_conn_body.lgdc_gen", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_create_cr_padding_2, - { "Cr Padding 2", "lustre.mds_rec_create.cr_padding_2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_setattr_sa_ctime, - { "Sa Ctime", "lustre.mds_rec_setattr.sa_ctime",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_log_hdr_llh_tail, + { &hf_lustre_llog_log_hdr_llh_tail, { "Llh Tail", "lustre.llog_log_hdr.llh_tail", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_size, + { &hf_lustre_obdo_o_size, { "O Size", "lustre.obdo.o_size", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_setattr_sa_cap, - { "Sa Cap", "lustre.mds_rec_setattr.sa_cap", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_extent_start, + { &hf_lustre_ldlm_extent_start, { "Start", "lustre.ldlm_extent.start", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_unlink_ul_opcode, - { "Ul Opcode", "lustre.mds_rec_unlink.ul_opcode", FT_UINT32, BASE_DEC, VALS(lustre_mds_reint_t_vals) , 0, "", HFILL }}, - { &hf_lustre_llog_size_change_rec_lsc_hdr, + { &hf_lustre_llog_size_change_rec_lsc_hdr, { "Lsc Hdr", "lustre.llog_size_change_rec.lsc_hdr", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_unlink_ul_time, - { "Ul Time", "lustre.mds_rec_unlink.ul_time",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_create_rec_lcr_tail, + { &hf_lustre_llog_create_rec_lcr_tail, { "Lcr Tail", "lustre.llog_create_rec.lcr_tail", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_setattr_sa_mode, - { "Sa Mode", "lustre.mds_rec_setattr.sa_mode", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_logid_lgl_oseq, + { &hf_lustre_llog_logid_lgl_oseq, { "Lgl SEQ", "lustre.llog_logid.lgl_oseq", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_create_rec_lcr_hdr, + { &hf_lustre_llog_create_rec_lcr_hdr, { "Lcr Hdr", "lustre.llog_create_rec.lcr_hdr", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_cookie_lgc_padding, + { &hf_lustre_llog_cookie_lgc_padding, { "Lgc Padding", "lustre.llog_cookie.lgc_padding", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_create_cr_cap, - { "Cr Cap", "lustre.mds_rec_create.cr_cap", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_qunit_data_old_qd_type, + { &hf_lustre_qunit_data_old_qd_type, { "Qd Type", "lustre.qunit_data_old.qd_type", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_flock_blocking_export, + { &hf_lustre_ldlm_flock_blocking_export, { "Blocking Export", "lustre.ldlm_flock.blocking_export", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_setattr_sa_gid, - { "Sa Gid", "lustre.mds_rec_setattr.sa_gid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_desc_ld_pattern, + { &hf_lustre_lov_desc_ld_pattern, { "Ld Pattern", "lustre.lov_desc.ld_pattern", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_qunit_data_qd_id, + { &hf_lustre_qunit_data_qd_id, { "Qd Id", "lustre.qunit_data.qd_id", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mgs_target_info_mti_fsname, + { &hf_lustre_mgs_target_info_mti_fsname, { "Mti Fsname", "lustre.mgs_target_info.mti_fsname", FT_UINT8, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_request_lock_flags, + { &hf_lustre_ldlm_request_lock_flags, { "Lock Flags", "lustre.ldlm_request.lock_flags", FT_UINT32, BASE_HEX, NULL, 0 , "", HFILL }}, - { &hf_lustre_obdo_o_mode, + { &hf_lustre_obdo_o_mode, { "O Mode", "lustre.obdo.o_mode", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mgs_target_info_mti_svname, + { &hf_lustre_mgs_target_info_mti_svname, { "Mti Svname", "lustre.mgs_target_info.mti_svname", FT_UINT8, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llogd_body_lgd_logid, + { &hf_lustre_llogd_body_lgd_logid, { "Lgd Logid", "lustre.llogd_body.lgd_logid", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_create_cr_opcode, - { "Cr Opcode", "lustre.mds_rec_create.cr_opcode", FT_UINT32, BASE_DEC, VALS(lustre_mds_reint_t_vals), 0, "", HFILL }}, - { &hf_lustre_llog_log_hdr_llh_size, + { &hf_lustre_llog_log_hdr_llh_size, { "Llh Size", "lustre.llog_log_hdr.llh_size", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_create_rec_padding, + { &hf_lustre_llog_create_rec_padding, { "Padding", "lustre.llog_create_rec.padding", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_handle, + { &hf_lustre_obdo_o_handle, { "O Handle", "lustre.obdo.o_handle", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_atime, + { &hf_lustre_obdo_o_atime, { "O Atime", "lustre.obdo.o_atime",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_quota_adjust_qunit_qaq_id, + { &hf_lustre_quota_adjust_qunit_qaq_id, { "Qaq Id", "lustre.quota_adjust_qunit.qaq_id", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_rename_rn_fid2, - { "Rn Fid2", "lustre.mds_rec_rename.rn_fid2", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_create_cr_replayfid, - { "Cr Replayfid", "lustre.mds_rec_create.cr_replayfid", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_lock_desc_l_policy_data, + { &hf_lustre_ldlm_lock_desc_l_policy_data, { "L Policy Data", "lustre.ldlm_lock_desc.l_policy_data", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_link_lk_suppgid1, - { "Lk Suppgid1", "lustre.mds_rec_link.lk_suppgid1", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_quotactl_qc_cmd, + { &hf_lustre_obd_quotactl_qc_cmd, { "Qc Cmd", "lustre.obd_quotactl.qc_cmd", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_rename_rn_padding_3, - { "Rn Padding 3", "lustre.mds_rec_rename.rn_padding_3", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_qunit_data_padding, + { &hf_lustre_qunit_data_padding, { "Padding", "lustre.qunit_data.padding", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_quota_adjust_qunit_qaq_flags, + { &hf_lustre_quota_adjust_qunit_qaq_flags, { "Qaq Flags", "lustre.quota_adjust_qunit.qaq_flags", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_lock_desc_l_granted_mode, + { &hf_lustre_ldlm_lock_desc_l_granted_mode, { "L Granted Mode", "lustre.ldlm_lock_desc.l_granted_mode", FT_UINT16, BASE_DEC, VALS(lustre_ldlm_mode_t_vals), 0, "", HFILL }}, - { &hf_lustre_obdo_o_seq, + { &hf_lustre_obdo_o_seq, { "O SEQ", "lustre.obdo.o_seq", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_unlink_ul_padding_2, - { "Ul Padding 2", "lustre.mds_rec_unlink.ul_padding_2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_gid, + { &hf_lustre_obdo_o_gid, { "O Gid", "lustre.obdo.o_gid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_catid_lci_logid, + { &hf_lustre_llog_catid_lci_logid, { "Lci Logid", "lustre.llog_catid.lci_logid", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_rec_tail_lrt_index, + { &hf_lustre_llog_rec_tail_lrt_index, { "Lrt Index", "lustre.llog_rec_tail.lrt_index", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_desc_ld_default_stripe_count, + { &hf_lustre_lov_desc_ld_default_stripe_count, { "Ld Default Stripe Count", "lustre.lov_desc.ld_default_stripe_count", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_resource_desc_lr_padding, + { &hf_lustre_ldlm_resource_desc_lr_padding, { "Lr Padding", "lustre.ldlm_resource_desc.lr_padding", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_cfg_marker_cm_vers, + { &hf_lustre_cfg_marker_cm_vers, { "Cm Vers", "lustre.cfg_marker.cm_vers", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_create_cr_fid, - { "Cr Fid", "lustre.mds_rec_create.cr_fid", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_unlink_rec_lur_hdr, + { &hf_lustre_llog_unlink_rec_lur_hdr, { "Lur Hdr", "lustre.llog_unlink_rec.lur_hdr", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llogd_body_lgd_index, + { &hf_lustre_llogd_body_lgd_index, { "Lgd Index", "lustre.llogd_body.lgd_index", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_cfg_marker_cm_tgtname, + { &hf_lustre_cfg_marker_cm_tgtname, { "Cm Tgtname", "lustre.cfg_marker.cm_tgtname", FT_UINT8, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_unlink_ul_padding_1, - { "Ul Padding 1", "lustre.mds_rec_unlink.ul_padding_1", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_unlink_ul_cap, - { "Ul Cap", "lustre.mds_rec_unlink.ul_cap", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_setattr_rec_lsr_ogen, + { &hf_lustre_llog_setattr_rec_lsr_ogen, { "Lsr Ogen", "lustre.llog_setattr_rec.lsr_ogen", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_create_cr_padding_3, - { "Cr Padding 3", "lustre.mds_rec_create.cr_padding_3", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_logid_rec_lid_hdr, + { &hf_lustre_llog_logid_rec_lid_hdr, { "Lid Hdr", "lustre.llog_logid_rec.lid_hdr", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_ioepoch, + { &hf_lustre_obdo_o_ioepoch, { "O IOEpoch", "lustre.obdo.o_ioepoch", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ost_body_oa, + { &hf_lustre_ost_body_oa, { "Oa", "lustre.ost_body.oa", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_logid_rec_padding3, + { &hf_lustre_llog_logid_rec_padding3, { "Padding3", "lustre.llog_logid_rec.padding3", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_log_hdr_llh_flags, + { &hf_lustre_llog_log_hdr_llh_flags, { "Llh Flags", "lustre.llog_log_hdr.llh_flags", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, {&hf_lustre_llog_hdr_llh_flag_zap_when_empty, {"LLOG_F_ZAP_WHEN_EMPTY","lustre.lustre.llog_log_hdr.llh_flag_zap",FT_BOOLEAN,32,TFS(&flags_set_truth),LLOG_F_ZAP_WHEN_EMPTY,"",HFILL}}, @@ -9069,292 +10222,228 @@ void proto_register_dcerpc_lustre(void) {&hf_lustre_llog_hdr_llh_flag_is_play, {"LOG_F_IS_PLAIN","lustre.lustre.llog_log_hdr.llh_flag_play",FT_BOOLEAN,32,TFS(&flags_set_truth),LLOG_F_IS_PLAIN,"",HFILL}}, - { &hf_lustre_llog_setattr_rec_lsr_oid, + { &hf_lustre_llog_setattr_rec_lsr_oid, { "Lsr Oid", "lustre.llog_setattr_rec.lsr_oid", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_create_cr_mode, - { "Cr Mode", "lustre.mds_rec_create.cr_mode", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_size_change_rec_padding, + { &hf_lustre_llog_size_change_rec_padding, { "Padding", "lustre.llog_size_change_rec.padding", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mgs_target_info_mti_config_ver, + { &hf_lustre_mgs_target_info_mti_config_ver, { "Mti Config Ver", "lustre.mgs_target_info.mti_config_ver", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_cfg_marker_cm_createtime, + { &hf_lustre_cfg_marker_cm_createtime, { "Cm Createtime", "lustre.cfg_marker.cm_createtime",FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_qunit_data_old_qd_count, + { &hf_lustre_qunit_data_old_qd_count, { "Qd Count", "lustre.qunit_data_old.qd_count", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_setattr_sa_uid, - { "Sa Uid", "lustre.mds_rec_setattr.sa_uid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_catid_lci_padding1, + { &hf_lustre_llog_catid_lci_padding1, { "Lci Padding1", "lustre.llog_catid.lci_padding1", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_setattr_sa_atime, - { "Sa Atime", "lustre.mds_rec_setattr.sa_atime",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_desc_ld_active_tgt_count, + { &hf_lustre_lov_desc_ld_active_tgt_count, { "Ld Active Tgt Count", "lustre.lov_desc.ld_active_tgt_count", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_lcookie, + { &hf_lustre_obdo_o_lcookie, { "O Lcookie", "lustre.obdo.o_lcookie", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_gen_rec_lgr_gen, + { &hf_lustre_llog_gen_rec_lgr_gen, { "Lgr Gen", "lustre.llog_gen_rec.lgr_gen", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_id, + { &hf_lustre_obdo_o_id, { "O Id", "lustre.obdo.o_id", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mgs_target_info_mti_uuid, + { &hf_lustre_mgs_target_info_mti_uuid, { "Mti Uuid", "lustre.mgs_target_info.mti_uuid", FT_UINT8, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_link_lk_padding_1, - { "Lk Padding 1", "lustre.mds_rec_link.lk_padding_1", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_rec_hdr_lrh_index, + { &hf_lustre_llog_rec_hdr_lrh_index, { "Lrh Index", "lustre.llog_rec_hdr.lrh_index", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_setattr_rec_lsr_hdr, + { &hf_lustre_llog_setattr_rec_lsr_hdr, { "Lsr Hdr", "lustre.llog_setattr_rec.lsr_hdr", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_mgs_target_info_mti_stripe_index, + { &hf_lustre_mgs_target_info_mti_stripe_index, { "Mti Stripe Index", "lustre.mgs_target_info.mti_stripe_index", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_gen_conn_cnt, + { &hf_lustre_llog_gen_conn_cnt, { "Conn Cnt", "lustre.llog_gen.conn_cnt", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_padding_6, + { &hf_lustre_obdo_o_padding_6, { "O Padding 6", "lustre.obdo.o_padding_6", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_create_cr_suppgid, - { "Cr Suppgid", "lustre.mds_rec_create.cr_suppgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_cookie_lgc_index, + { &hf_lustre_llog_cookie_lgc_index, { "Lgc Index", "lustre.llog_cookie.lgc_index", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_desc_ld_uuid, + { &hf_lustre_lov_desc_ld_uuid, { "Ld Uuid", "lustre.lov_desc.ld_uuid", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_create_rec_lcr_oid, + { &hf_lustre_llog_create_rec_lcr_oid, { "Lcr Oid", "lustre.llog_create_rec.lcr_oid", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_reply_lock_desc, + { &hf_lustre_ldlm_reply_lock_desc, { "Lock Desc", "lustre.ldlm_reply.lock_desc", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_desc_ld_padding_0, + { &hf_lustre_lov_desc_ld_padding_0, { "Ld Padding 0", "lustre.lov_desc.ld_padding_0", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_unlink_rec_lur_ogen, + { &hf_lustre_llog_unlink_rec_lur_ogen, { "Lur Ogen", "lustre.llog_unlink_rec.lur_ogen", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_orphan_rec_lor_hdr, + { &hf_lustre_llog_orphan_rec_lor_hdr, { "Lor Hdr", "lustre.llog_orphan_rec.lor_hdr", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_rename_rn_fsuid, - { "Rn Fsuid", "lustre.mds_rec_rename.rn_fsuid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_cfg_marker_cm_flags, + { &hf_lustre_cfg_marker_cm_flags, { "Cm Flags", "lustre.cfg_marker.cm_flags", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_padding_3, + { &hf_lustre_obdo_o_padding_3, { "O Padding 3", "lustre.obdo.o_padding_3", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_create_cr_fsuid, - { "Cr Fsuid", "lustre.mds_rec_create.cr_fsuid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_unlink_ul_fsgid, - { "Ul Fsgid", "lustre.mds_rec_unlink.ul_fsgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_request_lock_desc, + { &hf_lustre_ldlm_request_lock_desc, { "Lock Desc", "lustre.ldlm_request.lock_desc", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_unlink_ul_fsuid, - { "Ul Fsuid", "lustre.mds_rec_unlink.ul_fsuid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_link_lk_suppgid2, - { "Lk Suppgid2", "lustre.mds_rec_link.lk_suppgid2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_orphan_rec_padding, + { &hf_lustre_llog_orphan_rec_padding, { "Padding", "lustre.llog_orphan_rec.padding", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_flags, + { &hf_lustre_obdo_o_flags, { "O Flags", "lustre.obdo.o_flags", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mgs_target_info_mti_params, + { &hf_lustre_mgs_target_info_mti_params, { "Mti Params", "lustre.mgs_target_info.mti_params", FT_UINT8, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_logid_lgl_ogen, + { &hf_lustre_llog_logid_lgl_ogen, { "Lgl Ogen", "lustre.llog_logid.lgl_ogen", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_setattr_sa_valid, - { "Sa Valid", "lustre.mds_rec_setattr.sa_valid", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_cfg_marker_cm_comment, + { &hf_lustre_cfg_marker_cm_comment, { "Cm Comment", "lustre.cfg_marker.cm_comment", FT_UINT8, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_unlink_rec_lur_oid, + { &hf_lustre_llog_unlink_rec_lur_oid, { "Lur Oid", "lustre.llog_unlink_rec.lur_oid", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_qunit_data_qd_count, + { &hf_lustre_qunit_data_qd_count, { "Qd Count", "lustre.qunit_data.qd_count", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_rename_rn_padding_1, - { "Rn Padding 1", "lustre.mds_rec_rename.rn_padding_1", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_mtime, + { &hf_lustre_obdo_o_mtime, { "O Mtime", "lustre.obdo.o_mtime",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_rename_rn_fsgid, - { "Rn Fsgid", "lustre.mds_rec_rename.rn_fsgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_rename_rn_cap, - { "Rn Cap", "lustre.mds_rec_rename.rn_cap", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_blksize, + { &hf_lustre_obdo_o_blksize, { "O Blksize", "lustre.obdo.o_blksize", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_unlink_ul_suppgid, - { "Ul Suppgid", "lustre.mds_rec_unlink.ul_suppgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_res_id_name, + { &hf_lustre_ldlm_res_id_name, { "Name", "lustre.ldlm_res_id.name", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_link_lk_time, - { "Lk Time", "lustre.mds_rec_link.lk_time",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_reply_lock_handle, + { &hf_lustre_ldlm_reply_lock_handle, { "Lock Handle", "lustre.ldlm_reply.lock_handle", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_unlink_ul_padding_3, - { "Ul Padding 3", "lustre.mds_rec_unlink.ul_padding_3", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llogd_body_lgd_saved_index, + { &hf_lustre_llogd_body_lgd_saved_index, { "Lgd Saved Index", "lustre.llogd_body.lgd_saved_index", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_rename_rn_padding_4, - { "Rn Padding 4", "lustre.mds_rec_rename.rn_padding_4", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_qunit_data_old_qd_isblk, + { &hf_lustre_qunit_data_old_qd_isblk, { "Qd Isblk", "lustre.qunit_data_old.qd_isblk", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_blocks, + { &hf_lustre_obdo_o_blocks, { "O Blocks", "lustre.obdo.o_blocks", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_desc_ld_padding_2, + { &hf_lustre_lov_desc_ld_padding_2, { "Ld Padding 2", "lustre.lov_desc.ld_padding_2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_link_lk_fid2, - { "Lk Fid2", "lustre.mds_rec_link.lk_fid2", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_logid_rec_lid_tail, + { &hf_lustre_llog_logid_rec_lid_tail, { "Lid Tail", "lustre.llog_logid_rec.lid_tail", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_grant, + { &hf_lustre_obdo_o_grant, { "O Grant", "lustre.obdo.o_grant", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_padding_2, + { &hf_lustre_obdo_o_padding_2, { "O Padding 2", "lustre.obdo.o_padding_2", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_quota_adjust_qunit_qaq_iunit_sz, + { &hf_lustre_quota_adjust_qunit_qaq_iunit_sz, { "Qaq Iunit Sz", "lustre.quota_adjust_qunit.qaq_iunit_sz", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_unlink_rec_padding, + { &hf_lustre_llog_unlink_rec_padding, { "Padding", "lustre.llog_unlink_rec.padding", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_lock_desc_l_req_mode, + { &hf_lustre_ldlm_lock_desc_l_req_mode, { "L Req Mode", "lustre.ldlm_lock_desc.l_req_mode", FT_UINT16, BASE_DEC, VALS(lustre_ldlm_mode_t_vals), 0, "", HFILL }}, - { &hf_lustre_ldlm_extent_end, + { &hf_lustre_ldlm_extent_end, { "End", "lustre.ldlm_extent.end", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_gen_rec_lgr_hdr, + { &hf_lustre_llog_gen_rec_lgr_hdr, { "Lgr Hdr", "lustre.llog_gen_rec.lgr_hdr", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_orphan_rec_lor_ogen, + { &hf_lustre_llog_orphan_rec_lor_ogen, { "Lor Ogen", "lustre.llog_orphan_rec.lor_ogen", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llogd_body_lgd_llh_flags, + { &hf_lustre_llogd_body_lgd_llh_flags, { "Lgd Llh Flags", "lustre.llogd_body.lgd_llh_flags", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_log_hdr_llh_cat_idx, + { &hf_lustre_llog_log_hdr_llh_cat_idx, { "Llh Cat Idx", "lustre.llog_log_hdr.llh_cat_idx", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_log_hdr_llh_bitmap_offset, + { &hf_lustre_llog_log_hdr_llh_bitmap_offset, { "Llh Bitmap Offset", "lustre.llog_log_hdr.llh_bitmap_offset", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_orphan_rec_lor_oid, + { &hf_lustre_llog_orphan_rec_lor_oid, { "Lor Oid", "lustre.llog_orphan_rec.lor_oid", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_reply_lock_padding, + { &hf_lustre_ldlm_reply_lock_padding, { "Lock Padding", "lustre.ldlm_reply.lock_padding", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_quotactl_qc_id, + { &hf_lustre_obd_quotactl_qc_id, { "Qc Id", "lustre.obd_quotactl.qc_id", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_create_cr_padding_4, - { "Cr Padding 4", "lustre.mds_rec_create.cr_padding_4", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_logid_rec_padding4, + { &hf_lustre_llog_logid_rec_padding4, { "Padding4", "lustre.llog_logid_rec.padding4", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_link_lk_padding_2, - { "Lk Padding 2", "lustre.mds_rec_link.lk_padding_2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_setattr_rec_lsr_gid, + { &hf_lustre_llog_setattr_rec_lsr_gid, { "Lsr Gid", "lustre.llog_setattr_rec.lsr_gid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_quotactl_qc_type, + { &hf_lustre_obd_quotactl_qc_type, { "Qc Type", "lustre.obd_quotactl.qc_type", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_cfg_marker_padding, + { &hf_lustre_cfg_marker_padding, { "Padding", "lustre.cfg_marker.padding", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mgs_target_info_mti_nids, + { &hf_lustre_mgs_target_info_mti_nids, { "Mti Nids", "lustre.mgs_target_info.mti_nids", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_stripe_idx, + { &hf_lustre_obdo_o_stripe_idx, { "O Stripe Idx", "lustre.obdo.o_stripe_idx", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llogd_conn_body_lgdc_logid, + { &hf_lustre_llogd_conn_body_lgdc_logid, { "Lgdc Logid", "lustre.llogd_conn_body.lgdc_logid", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_setattr_sa_fsuid, - { "Sa Fsuid", "lustre.mds_rec_setattr.sa_fsuid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_flock_blocking_pid, + { &hf_lustre_ldlm_flock_blocking_pid, { "Blocking Pid", "lustre.ldlm_flock.blocking_pid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_desc_ld_tgt_count, + { &hf_lustre_lov_desc_ld_tgt_count, { "Ld Tgt Count", "lustre.lov_desc.ld_tgt_count", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llogd_body_lgd_cur_offset, + { &hf_lustre_llogd_body_lgd_cur_offset, { "Lgd Cur Offset", "lustre.llogd_body.lgd_cur_offset", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_create_rec_lcr_ogen, + { &hf_lustre_llog_create_rec_lcr_ogen, { "Lcr Ogen", "lustre.llog_create_rec.lcr_ogen", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_qunit_data_old2_qd_count, + { &hf_lustre_qunit_data_old2_qd_count, { "Qd Count", "lustre.qunit_data_old2.qd_count", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_opnum, + { &hf_lustre_opnum, { "Operation", "lustre.opnum", FT_UINT16, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_qunit_data_old2_qd_flags, + { &hf_lustre_qunit_data_old2_qd_flags, { "Qd Flags", "lustre.qunit_data_old2.qd_flags", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_flock_start, + { &hf_lustre_ldlm_flock_start, { "Start", "lustre.ldlm_flock.start", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_quota_adjust_qunit_qaq_bunit_sz, + { &hf_lustre_quota_adjust_qunit_qaq_bunit_sz, { "Qaq Bunit Sz", "lustre.quota_adjust_qunit.qaq_bunit_sz", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_flock_pid, + { &hf_lustre_ldlm_flock_pid, { "Pid", "lustre.ldlm_flock.pid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_desc_ld_default_stripe_size, + { &hf_lustre_lov_desc_ld_default_stripe_size, { "Ld Default Stripe Size", "lustre.lov_desc.ld_default_stripe_size", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_setattr_sa_opcode, - { "Sa Opcode", "lustre.mds_rec_setattr.sa_opcode", FT_UINT32, BASE_DEC, VALS(lustre_mds_reint_t_vals), 0, "", HFILL }}, - { &hf_lustre_llog_log_hdr_llh_tgtuuid, + { &hf_lustre_llog_log_hdr_llh_tgtuuid, { "Llh Tgtuuid", "lustre.llog_log_hdr.llh_tgtuuid", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_link_lk_fid1, - { "Lk Fid1", "lustre.mds_rec_link.lk_fid1", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_cfg_marker_cm_step, + { &hf_lustre_cfg_marker_cm_step, { "Cm Step", "lustre.cfg_marker.cm_step", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mgs_send_param_mgs_param, + { &hf_lustre_mgs_send_param_mgs_param, { "Mgs Param", "lustre.mgs_send_param.mgs_param", FT_UINT8, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_create_rec_lcr_fid, + { &hf_lustre_llog_create_rec_lcr_fid, { "Lcr Fid", "lustre.llog_create_rec.lcr_fid", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_desc_ld_default_stripe_offset, + { &hf_lustre_lov_desc_ld_default_stripe_offset, { "Ld Default Stripe Offset", "lustre.lov_desc.ld_default_stripe_offset", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_resource_desc_lr_name, + { &hf_lustre_ldlm_resource_desc_lr_name, { "Lr Name", "lustre.ldlm_resource_desc.lr_name", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_rec_tail_lrt_len, + { &hf_lustre_llog_rec_tail_lrt_len, { "Lrt Len", "lustre.llog_rec_tail.lrt_len", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_setattr_sa_mtime, - { "Sa Mtime", "lustre.mds_rec_setattr.sa_mtime",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_log_hdr_llh_timestamp, + { &hf_lustre_llog_log_hdr_llh_timestamp, { "Llh Timestamp", "lustre.llog_log_hdr.llh_timestamp", FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_catid_lci_padding2, + { &hf_lustre_llog_catid_lci_padding2, { "Lci Padding2", "lustre.llog_catid.lci_padding2", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llogd_conn_body_lgdc_ctxt_idx, + { &hf_lustre_llogd_conn_body_lgdc_ctxt_idx, { "Lgdc Ctxt Idx", "lustre.llogd_conn_body.lgdc_ctxt_idx", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_cfg_marker_cm_canceltime, + { &hf_lustre_cfg_marker_cm_canceltime, { "Cm Canceltime", "lustre.cfg_marker.cm_canceltime",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mgs_target_info_mti_lustre_ver, + { &hf_lustre_mgs_target_info_mti_lustre_ver, { "Mti Lustre Ver", "lustre.mgs_target_info.mti_lustre_ver", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_parent_ver, + { &hf_lustre_obdo_o_parent_ver, { "O Parent VER", "lustre.obdo.o_parent_ver", FT_UINT32, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_qunit_data_qd_flags, + { &hf_lustre_qunit_data_qd_flags, { "Qd Flags", "lustre.qunit_data.qd_flags", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_logid_rec_lid_id, + { &hf_lustre_llog_logid_rec_lid_id, { "Lid Id", "lustre.llog_logid_rec.lid_id", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_parent_oid, + { &hf_lustre_obdo_o_parent_oid, { "O Parent OID", "lustre.obdo.o_parent_oid", FT_UINT32, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_gen_mnt_cnt, + { &hf_lustre_llog_gen_mnt_cnt, { "Mnt Cnt", "lustre.llog_gen.mnt_cnt", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_size_change_rec_lsc_tail, + { &hf_lustre_llog_size_change_rec_lsc_tail, { "Lsc Tail", "lustre.llog_size_change_rec.lsc_tail", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_padding_5, + { &hf_lustre_obdo_o_padding_5, { "O Padding 5", "lustre.obdo.o_padding_5", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_lock_desc_l_resource, + { &hf_lustre_ldlm_lock_desc_l_resource, { "L Resource", "lustre.ldlm_lock_desc.l_resource", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_rename_rn_time, - { "Rn Time", "lustre.mds_rec_rename.rn_time",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_create_cr_rdev, - { "Cr Rdev", "lustre.mds_rec_create.cr_rdev", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_parent_seq, + { &hf_lustre_obdo_o_parent_seq, { "O Parent SEQ", "lustre.obdo.o_parent_seq", FT_UINT64, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_setattr_sa_fid, - { "Sa Fid", "lustre.mds_rec_setattr.sa_fid", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_request_lock_count, - { "Lock Count", "lustre.ldlm_request.lock_count", FT_UINT32, BASE_HEX_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_flock_end, + { &hf_lustre_ldlm_request_lock_count, + { "Lock Count", "lustre.ldlm_request.lock_count", FT_UINT32, BASE_HEX_DEC, NULL, 0, "", HFILL }}, + { &hf_lustre_ldlm_flock_end, { "End", "lustre.ldlm_flock.end", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_link_lk_opcode, - { "Lk Opcode", "lustre.mds_rec_link.lk_opcode", FT_UINT32, BASE_DEC,VALS(lustre_mds_reint_t_vals) , 0, "", HFILL }}, - { &hf_lustre_mgs_target_info_mti_nid_count, + { &hf_lustre_mgs_target_info_mti_nid_count, { "Mti Nid Count", "lustre.mgs_target_info.mti_nid_count", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, /* ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */ - { &hf_lustre_mgs_target_info, + { &hf_lustre_mgs_target_info, { "mgs target info", "lustre.mgs_target_info", FT_NONE, BASE_NONE, NULL, 0, "", HFILL }}, - { &hf_lustre_mgs_send_param, + { &hf_lustre_mgs_send_param, { "mgs send param", "lustre.mgs_send_param", FT_NONE, BASE_NONE, NULL, 0, "", HFILL }}, /* ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */ - { &hf_lustre_ost_lvb, + { &hf_lustre_ost_lvb, { "ost lvb data", "lustre.ost_lvb", FT_NONE, BASE_NONE, NULL, 0, "", HFILL }}, - { &hf_lustre_obdo_o_ctime, + { &hf_lustre_obdo_o_ctime, { "O Ctime", "lustre.obdo.o_ctime",FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_reply_lock_policy_res2, + { &hf_lustre_ldlm_reply_lock_policy_res2, { "Lock Policy Res2", "lustre.ldlm_reply.lock_policy_res2", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llogd_body_lgd_ctxt_idx, + { &hf_lustre_llogd_body_lgd_ctxt_idx, { "Lgd Ctxt Idx", "lustre.llogd_body.lgd_ctxt_idx", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_unlink_ul_fid2, - { "Ul Fid2", "lustre.mds_rec_unlink.ul_fid2", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_lov_desc_ld_qos_maxage, + { &hf_lustre_lov_desc_ld_qos_maxage, { "Ld Qos Maxage", "lustre.lov_desc.ld_qos_maxage", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_ldlm_resource_desc_lr_type, + { &hf_lustre_ldlm_resource_desc_lr_type, { "Lr Type", "lustre.ldlm_resource_desc.lr_type", FT_UINT16, BASE_DEC, VALS(lustre_ldlm_type_t_vals), 0, "", HFILL }}, - { &hf_lustre_llog_setattr_rec_lsr_tail, + { &hf_lustre_llog_setattr_rec_lsr_tail, { "Lsr Tail", "lustre.llog_setattr_rec.lsr_tail", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_cookie_lgc_subsys, + { &hf_lustre_llog_cookie_lgc_subsys, { "Lgc Subsys", "lustre.llog_cookie.lgc_subsys", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_log_hdr_llh_hdr, + { &hf_lustre_llog_log_hdr_llh_hdr, { "Llh Hdr", "lustre.llog_log_hdr.llh_hdr", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_setattr_sa_fsgid, - { "Sa Fsgid", "lustre.mds_rec_setattr.sa_fsgid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_mds_rec_setattr_sa_padding, - { "Sa Padding", "lustre.mds_rec_setattr.sa_padding", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_llog_log_hdr_llh_reserved, + { &hf_lustre_llog_log_hdr_llh_reserved, { "Llh Reserved", "lustre.llog_log_hdr.llh_reserved", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, { &hf_lustre_extra_padding, @@ -9365,33 +10454,33 @@ void proto_register_dcerpc_lustre(void) { "ldlm request", "lustre.ldlm_request", FT_NONE, BASE_NONE, NULL, 0, "", HFILL}}, /* add for lustre_user.h */ - { &hf_lustre_obd_dqinfo_dqi_valid, + { &hf_lustre_obd_dqinfo_dqi_valid, { "Dqi Valid", "lustre.obd_dqinfo.dqi_valid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_dqblk_dqb_isoftlimit, + { &hf_lustre_obd_dqblk_dqb_isoftlimit, { "Dqb Isoftlimit", "lustre.obd_dqblk.dqb_isoftlimit", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_dqblk_dqb_bhardlimit, + { &hf_lustre_obd_dqblk_dqb_bhardlimit, { "Dqb Bhardlimit", "lustre.obd_dqblk.dqb_bhardlimit", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_dqblk_dqb_curspace, + { &hf_lustre_obd_dqblk_dqb_curspace, { "Dqb Curspace", "lustre.obd_dqblk.dqb_curspace", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_dqblk_dqb_itime, + { &hf_lustre_obd_dqblk_dqb_itime, { "Dqb Itime", "lustre.obd_dqblk.dqb_itime", FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_dqblk_dqb_valid, + { &hf_lustre_obd_dqblk_dqb_valid, { "Dqb Valid", "lustre.obd_dqblk.dqb_valid", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_dqinfo_dqi_igrace, + { &hf_lustre_obd_dqinfo_dqi_igrace, { "Dqi Igrace", "lustre.obd_dqinfo.dqi_igrace", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_dqinfo_dqi_bgrace, + { &hf_lustre_obd_dqinfo_dqi_bgrace, { "Dqi Bgrace", "lustre.obd_dqinfo.dqi_bgrace", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_dqblk_padding, + { &hf_lustre_obd_dqblk_padding, { "Padding", "lustre.obd_dqblk.padding", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_dqblk_dqb_curinodes, + { &hf_lustre_obd_dqblk_dqb_curinodes, { "Dqb Curinodes", "lustre.obd_dqblk.dqb_curinodes", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_dqblk_dqb_bsoftlimit, + { &hf_lustre_obd_dqblk_dqb_bsoftlimit, { "Dqb Bsoftlimit", "lustre.obd_dqblk.dqb_bsoftlimit", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_dqinfo_dqi_flags, + { &hf_lustre_obd_dqinfo_dqi_flags, { "Dqi Flags", "lustre.obd_dqinfo.dqi_flags", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_dqblk_dqb_btime, + { &hf_lustre_obd_dqblk_dqb_btime, { "Dqb Btime", "lustre.obd_dqblk.dqb_btime", FT_ABSOLUTE_TIME, BASE_DEC, NULL, 0, "", HFILL }}, - { &hf_lustre_obd_dqblk_dqb_ihardlimit, + { &hf_lustre_obd_dqblk_dqb_ihardlimit, { "Dqb Ihardlimit", "lustre.obd_dqblk.dqb_ihardlimit", FT_UINT64, BASE_DEC, NULL, 0, "", HFILL }} }; @@ -9413,17 +10502,17 @@ void proto_register_dcerpc_lustre(void) &ett_lustre_niobuf_remote, &ett_lustre_ost_lvb, &ett_lustre_ll_fid, - &ett_lustre_mds_status_req, - &ett_lustre_mds_body, &ett_lustre_obd_quotactl, &ett_lustre_obd_dqinfo, &ett_lustre_obd_dqblk, &ett_lustre_quota_adjust_qunit, - &ett_lustre_mds_rec_setattr, - &ett_lustre_mds_rec_create, - &ett_lustre_mds_rec_link, - &ett_lustre_mds_rec_unlink, - &ett_lustre_mds_rec_rename, + &ett_lustre_mdt_body, + &ett_lustre_mdt_rec_setattr, + &ett_lustre_mdt_rec_create, + &ett_lustre_mdt_rec_link, + &ett_lustre_mdt_rec_unlink, + &ett_lustre_mdt_rec_rename, + &ett_lustre_mdt_rec_setxattr, &ett_lustre_lov_desc, &ett_lustre_obd_uuid, &ett_lustre_ldlm_res_id, @@ -9520,19 +10609,19 @@ void proto_reg_handoff_lustre(void) dissector_add("lnet.ptl_index", MDC_REPLY_PORTAL , lustre_handle); dissector_add("lnet.ptl_index", CONNMGR_REQUEST_PORTAL , lustre_handle); dissector_add("lnet.ptl_index", CONNMGR_REPLY_PORTAL , lustre_handle); - dissector_add("lnet.ptl_index", OSC_REPLY_PORTAL , lustre_handle); - dissector_add("lnet.ptl_index", OST_IO_PORTAL , lustre_handle); - dissector_add("lnet.ptl_index", OST_CREATE_PORTAL , lustre_handle); - dissector_add("lnet.ptl_index", MDC_REPLY_PORTAL , lustre_handle); - dissector_add("lnet.ptl_index", MDS_REQUEST_PORTAL , lustre_handle); - dissector_add("lnet.ptl_index", LDLM_CB_REQUEST_PORTAL , lustre_handle); - dissector_add("lnet.ptl_index", LDLM_CB_REPLY_PORTAL , lustre_handle); - dissector_add("lnet.ptl_index", LDLM_CANCEL_REQUEST_PORTAL, lustre_handle); - dissector_add("lnet.ptl_index", LDLM_CANCEL_REPLY_PORTAL , lustre_handle); - dissector_add("lnet.ptl_index", MDS_SETATTR_PORTAL , lustre_handle); - dissector_add("lnet.ptl_index", MDS_READPAGE_PORTAL , lustre_handle); - dissector_add("lnet.ptl_index", MGC_REPLY_PORTAL , lustre_handle); - dissector_add("lnet.ptl_index", MGS_REQUEST_PORTAL , lustre_handle); - dissector_add("lnet.ptl_index", MGS_REPLY_PORTAL , lustre_handle); - dissector_add("lnet.ptl_index", OST_REQUEST_PORTAL , lustre_handle); + dissector_add("lnet.ptl_index", OSC_REPLY_PORTAL , lustre_handle); + dissector_add("lnet.ptl_index", OST_IO_PORTAL , lustre_handle); + dissector_add("lnet.ptl_index", OST_CREATE_PORTAL , lustre_handle); + dissector_add("lnet.ptl_index", MDC_REPLY_PORTAL , lustre_handle); + dissector_add("lnet.ptl_index", MDS_REQUEST_PORTAL , lustre_handle); + dissector_add("lnet.ptl_index", LDLM_CB_REQUEST_PORTAL , lustre_handle); + dissector_add("lnet.ptl_index", LDLM_CB_REPLY_PORTAL , lustre_handle); + dissector_add("lnet.ptl_index", LDLM_CANCEL_REQUEST_PORTAL, lustre_handle); + dissector_add("lnet.ptl_index", LDLM_CANCEL_REPLY_PORTAL , lustre_handle); + dissector_add("lnet.ptl_index", MDS_SETATTR_PORTAL , lustre_handle); + dissector_add("lnet.ptl_index", MDS_READPAGE_PORTAL , lustre_handle); + dissector_add("lnet.ptl_index", MGC_REPLY_PORTAL , lustre_handle); + dissector_add("lnet.ptl_index", MGS_REQUEST_PORTAL , lustre_handle); + dissector_add("lnet.ptl_index", MGS_REPLY_PORTAL , lustre_handle); + dissector_add("lnet.ptl_index", OST_REQUEST_PORTAL , lustre_handle); }