From: ericm Date: Fri, 14 Nov 2008 19:43:53 +0000 (+0000) Subject: branch: b1_8_gate X-Git-Tag: v1_7_140~1^175 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=83ad6b41774b8c416fb16423326959aedd80fdbb;p=fs%2Flustre-release.git branch: b1_8_gate reserve some space in mdt_body and mdt_rec_xxx structures and add MDS_SETATTR64_REC to allow possible expansion of uid/gid to 64 bits in the future. r=adilger r=huanghua r=fanyong --- diff --git a/lustre/mdc/mdc_locks.c b/lustre/mdc/mdc_locks.c index df74fd4..67bdb0d 100644 --- a/lustre/mdc/mdc_locks.c +++ b/lustre/mdc/mdc_locks.c @@ -248,7 +248,7 @@ static struct ptlrpc_request *mdc_intent_open_pack(struct obd_export *exp, obddev->u.cli.cl_default_mds_easize) }; __u32 repsize[7] = { [MSG_PTLRPC_BODY_OFF] = sizeof(struct ptlrpc_body), [DLM_LOCKREPLY_OFF] = sizeof(struct ldlm_reply), - [DLM_REPLY_REC_OFF] = sizeof(struct mds_body), + [DLM_REPLY_REC_OFF] = sizeof(struct mdt_body), [DLM_REPLY_REC_OFF+1] = obddev->u.cli. cl_max_mds_easize, [DLM_REPLY_REC_OFF+2] = LUSTRE_POSIX_ACL_MAX_SIZE }; @@ -354,7 +354,7 @@ static struct ptlrpc_request *mdc_intent_unlink_pack(struct obd_export *exp, [DLM_INTENT_REC_OFF+1]= data->namelen + 1 }; __u32 repsize[5] = { [MSG_PTLRPC_BODY_OFF] = sizeof(struct ptlrpc_body), [DLM_LOCKREPLY_OFF] = sizeof(struct ldlm_reply), - [DLM_REPLY_REC_OFF] = sizeof(struct mds_body), + [DLM_REPLY_REC_OFF] = sizeof(struct mdt_body), [DLM_REPLY_REC_OFF+1] = obddev->u.cli. cl_max_mds_easize, [DLM_REPLY_REC_OFF+2] = obddev->u.cli. @@ -386,12 +386,12 @@ static struct ptlrpc_request *mdc_intent_lookup_pack(struct obd_export *exp, __u32 size[6] = { [MSG_PTLRPC_BODY_OFF] = sizeof(struct ptlrpc_body), [DLM_LOCKREQ_OFF] = sizeof(struct ldlm_request), [DLM_INTENT_IT_OFF] = sizeof(*lit), - [DLM_INTENT_REC_OFF] = sizeof(struct mds_body), + [DLM_INTENT_REC_OFF] = sizeof(struct mdt_body), [DLM_INTENT_REC_OFF+1]= data->namelen + 1, [DLM_INTENT_REC_OFF+2]= 0 }; __u32 repsize[6] = { [MSG_PTLRPC_BODY_OFF] = sizeof(struct ptlrpc_body), [DLM_LOCKREPLY_OFF] = sizeof(struct ldlm_reply), - [DLM_REPLY_REC_OFF] = sizeof(struct mds_body), + [DLM_REPLY_REC_OFF] = sizeof(struct mdt_body), [DLM_REPLY_REC_OFF+1] = obddev->u.cli. cl_max_mds_easize, [DLM_REPLY_REC_OFF+2] = LUSTRE_POSIX_ACL_MAX_SIZE,