From: wangdi Date: Mon, 5 Jun 2006 14:48:11 +0000 (+0000) Subject: Branch: b_new_cmd X-Git-Tag: v1_8_0_110~486^2~1662 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=89b0e26e0e589cceb8028ed0171f691137778cfb;p=fs%2Flustre-release.git Branch: b_new_cmd several fixes in fld according to umka's review. --- diff --git a/lustre/mdc/mdc_request.c b/lustre/mdc/mdc_request.c index 947ec7b..3ea198b 100644 --- a/lustre/mdc/mdc_request.c +++ b/lustre/mdc/mdc_request.c @@ -877,7 +877,7 @@ int mdc_fld(struct obd_export *exp, struct md_fld *mf, __u32 fld_op) struct md_fld *pmf; int mf_size = sizeof(*mf); __u32 *op; - int size[2] = {sizeof(op), mf_size}, rc; + int size[2] = {sizeof(*op), mf_size}, rc; ENTRY; req = ptlrpc_prep_req(class_exp2cliimp(exp), LUSTRE_MDS_VERSION, @@ -897,6 +897,7 @@ int mdc_fld(struct obd_export *exp, struct md_fld *mf, __u32 fld_op) GOTO(out_req, rc); pmf = lustre_swab_repbuf(req, 0, sizeof(*pmf), lustre_swab_md_fld); + *mf = *pmf; out_req: ptlrpc_req_finished(req); RETURN(rc);