From: lsy Date: Mon, 2 Oct 2006 15:46:20 +0000 (+0000) Subject: get remote permisson request should follow the request format of MDS_GETATTR. X-Git-Tag: v1_8_0_110~486^2~727 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=ff0fbd72b9c6449c75441293b9ef13d8e0321e90;p=fs%2Flustre-release.git get remote permisson request should follow the request format of MDS_GETATTR. --- diff --git a/lustre/mdc/mdc_request.c b/lustre/mdc/mdc_request.c index 56f7032..d5e8f2d 100644 --- a/lustre/mdc/mdc_request.c +++ b/lustre/mdc/mdc_request.c @@ -1575,7 +1575,7 @@ int mdc_get_remote_perm(struct obd_export *exp, const struct lu_fid *fid, struct ptlrpc_request *req; struct mdt_body *body; struct mdt_remote_perm *perm; - int size[3] = { sizeof(struct ptlrpc_body), sizeof(*body) }; + int size[5] = { sizeof(struct ptlrpc_body), sizeof(*body) }; int rc; ENTRY; @@ -1591,7 +1591,7 @@ int mdc_get_remote_perm(struct obd_export *exp, const struct lu_fid *fid, mdc_pack_req_body(req, REQ_REC_OFF, OBD_MD_FLRMTPERM, fid, oc, 0, 0); size[REPLY_REC_OFF + 1] = sizeof(*perm); - ptlrpc_req_set_repsize(req, 3, size); + ptlrpc_req_set_repsize(req, 5, size); rc = ptlrpc_queue_wait(req); if (rc) { ptlrpc_req_finished(req);