X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flustre_swab.h;h=ceaf9c9fbbafd1da78eadf9d764ab2f14cc759b2;hb=9d17996766e0fa93b1029d2422d45d087edde389;hp=c63d4832578641be0df5fee7379d767c97a5c00e;hpb=e14246641c04c9e3004043f58f469532223d06d6;p=fs%2Flustre-release.git diff --git a/lustre/include/lustre_swab.h b/lustre/include/lustre_swab.h index c63d483..ceaf9c9 100644 --- a/lustre/include/lustre_swab.h +++ b/lustre/include/lustre_swab.h @@ -23,7 +23,7 @@ * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * - * Copyright (c) 2011, 2014, Intel Corporation. + * Copyright (c) 2017, Intel Corporation. * * Copyright 2015 Cray Inc, all rights reserved. * Author: Ben Evans. @@ -48,9 +48,11 @@ #ifndef _LUSTRE_SWAB_H_ #define _LUSTRE_SWAB_H_ -#include +#include void lustre_swab_orphan_ent(struct lu_orphan_ent *ent); +void lustre_swab_orphan_ent_v2(struct lu_orphan_ent_v2 *ent); +void lustre_swab_orphan_ent_v3(struct lu_orphan_ent_v3 *ent); void lustre_swab_ptlrpc_body(struct ptlrpc_body *pb); void lustre_swab_connect(struct obd_connect_data *ocd); void lustre_swab_hsm_user_state(struct hsm_user_state *hus); @@ -63,10 +65,10 @@ void lustre_swab_ost_lvb(struct ost_lvb *lvb); void lustre_swab_obd_quotactl(struct obd_quotactl *q); void lustre_swab_quota_body(struct quota_body *b); void lustre_swab_lquota_lvb(struct lquota_lvb *lvb); +void lustre_swab_barrier_lvb(struct barrier_lvb *lvb); void lustre_swab_generic_32s(__u32 *val); void lustre_swab_mdt_body(struct mdt_body *b); void lustre_swab_mdt_ioepoch(struct mdt_ioepoch *b); -void lustre_swab_mdt_remote_perm(struct mdt_remote_perm *p); void lustre_swab_mdt_rec_setattr(struct mdt_rec_setattr *sa); void lustre_swab_mdt_rec_reint(struct mdt_rec_reint *rr); void lustre_swab_lmv_desc(struct lmv_desc *ld); @@ -74,7 +76,8 @@ void lustre_swab_lmv_mds_md(union lmv_mds_md *lmm); void lustre_swab_lov_desc(struct lov_desc *ld); void lustre_swab_ldlm_res_id(struct ldlm_res_id *id); void lustre_swab_ldlm_policy_data(union ldlm_wire_policy_data *d); -void lustre_swab_gl_desc(union ldlm_gl_desc *); +void lustre_swab_gl_lquota_desc(struct ldlm_gl_lquota_desc *); +void lustre_swab_gl_barrier_desc(struct ldlm_gl_barrier_desc *); void lustre_swab_ldlm_intent(struct ldlm_intent *i); void lustre_swab_ldlm_resource_desc(struct ldlm_resource_desc *r); void lustre_swab_ldlm_lock_desc(struct ldlm_lock_desc *l); @@ -92,8 +95,10 @@ void lustre_swab_ost_last_id(__u64 *id); void lustre_swab_fiemap(struct fiemap *fiemap); void lustre_swab_lov_user_md_v1(struct lov_user_md_v1 *lum); void lustre_swab_lov_user_md_v3(struct lov_user_md_v3 *lum); +void lustre_swab_lov_comp_md_v1(struct lov_comp_md_v1 *lum); void lustre_swab_lov_user_md_objects(struct lov_user_ost_data *lod, int stripe_count); +void lustre_swab_lov_user_md(struct lov_user_md *lum); void lustre_swab_lov_mds_md(struct lov_mds_md *lmm); void lustre_swab_idx_info(struct idx_info *ii); void lustre_swab_lip_header(struct lu_idxpage *lip); @@ -115,8 +120,18 @@ void lustre_swab_object_update_result(struct object_update_result *our); void lustre_swab_object_update_reply(struct object_update_reply *our); void lustre_swab_swap_layouts(struct mdc_swap_layouts *msl); void lustre_swab_close_data(struct close_data *data); +void lustre_swab_close_data_resync_done(struct close_data_resync_done *resync); void lustre_swab_lmv_user_md(struct lmv_user_md *lum); void lustre_swab_ladvise(struct lu_ladvise *ladvise); void lustre_swab_ladvise_hdr(struct ladvise_hdr *ladvise_hdr); +/* Functions for dumping PTLRPC fields */ +void dump_rniobuf(struct niobuf_remote *rnb); +void dump_ioo(struct obd_ioobj *nb); +void dump_ost_body(struct ost_body *ob); +void dump_rcs(__u32 *rc); + +void lustre_print_user_md(unsigned int level, struct lov_user_md *lum, + const char *msg); + #endif