X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Finclude%2Flustre_swab.h;h=7db43f64a6897241a2e226f2028db7243ff0dd25;hb=7aef9051f38bcb5757bc132ad7627742b74c654c;hp=aee085a7ba254f5a30f1dc02d7d5837d102eee54;hpb=019a3b34c0f4d934266a185bcda048b1dab201ed;p=fs%2Flustre-release.git diff --git a/lustre/include/lustre_swab.h b/lustre/include/lustre_swab.h index aee085a..7db43f6 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) 2016, 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); @@ -60,7 +62,7 @@ void lustre_swab_obd_ioobj(struct obd_ioobj *ioo); void lustre_swab_niobuf_remote(struct niobuf_remote *nbr); void lustre_swab_ost_lvb_v1(struct ost_lvb_v1 *lvb); void lustre_swab_ost_lvb(struct ost_lvb *lvb); -void lustre_swab_obd_quotactl(struct obd_quotactl *q); +int lustre_swab_obd_quotactl(struct obd_quotactl *q, __u32 len); 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); @@ -90,16 +92,17 @@ void lustre_swab_lfsck_reply(struct lfsck_reply *lr); void lustre_swab_obdo(struct obdo *o); void lustre_swab_ost_body(struct ost_body *b); void lustre_swab_ost_last_id(__u64 *id); -void lustre_swab_fiemap(struct fiemap *fiemap); +int lustre_swab_fiemap(struct fiemap *fiemap, __u32 len); +void lustre_swab_fiemap_info_key(struct ll_fiemap_info_key *fiemap_info); 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, size_t size); 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); -void lustre_swab_lustre_capa(struct lustre_capa *c); -void lustre_swab_lustre_capa_key(struct lustre_capa_key *k); void lustre_swab_fid2path(struct getinfo_fid2path *gf); void lustre_swab_layout_intent(struct layout_intent *li); void lustre_swab_hsm_user_state(struct hsm_user_state *hus); @@ -109,13 +112,15 @@ void lustre_swab_hsm_user_state(struct hsm_user_state *hus); void lustre_swab_hsm_user_item(struct hsm_user_item *hui); void lustre_swab_hsm_request(struct hsm_request *hr); void lustre_swab_object_update(struct object_update *ou); -void lustre_swab_object_update_request(struct object_update_request *our); +int lustre_swab_object_update_request(struct object_update_request *our, + __u32 len); void lustre_swab_out_update_header(struct out_update_header *ouh); void lustre_swab_out_update_buffer(struct out_update_buffer *oub); void lustre_swab_object_update_result(struct object_update_result *our); -void lustre_swab_object_update_reply(struct object_update_reply *our); +int lustre_swab_object_update_reply(struct object_update_reply *our, __u32 len); 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);