From ff0fbd72b9c6449c75441293b9ef13d8e0321e90 Mon Sep 17 00:00:00 2001 From: lsy Date: Mon, 2 Oct 2006 15:46:20 +0000 Subject: [PATCH] get remote permisson request should follow the request format of MDS_GETATTR. --- lustre/mdc/mdc_request.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 1.8.3.1