From: John L. Hammond Date: Fri, 29 Jun 2018 21:11:45 +0000 (-0500) Subject: LU-11074 mdc: set correct body eadatasize for getxattr() X-Git-Tag: 2.11.53~4 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=dea1cde92014545d97406bf8adba20840abdb1a9;p=fs%2Flustre-release.git LU-11074 mdc: set correct body eadatasize for getxattr() In mdc_intent_getxattr_pack() set mbo_eadatasize to the size of the xattr values buffer rather than the size of the xattr names buffer. Signed-off-by: John L. Hammond Change-Id: Ibbed6aba6718f50eed1a08d506d526b1e0e042c8 Reviewed-on: https://review.whamcloud.com/32739 Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Andrew Perepechko Reviewed-by: James Simmons Tested-by: Andreas Dilger Reviewed-by: Oleg Drokin --- diff --git a/lustre/mdc/mdc_locks.c b/lustre/mdc/mdc_locks.c index b312a2f..591e6db 100644 --- a/lustre/mdc/mdc_locks.c +++ b/lustre/mdc/mdc_locks.c @@ -390,7 +390,7 @@ mdc_intent_getxattr_pack(struct obd_export *exp, /* pack the intended request */ mdc_pack_body(req, &op_data->op_fid1, op_data->op_valid, max_t(u32, min_buf_size, - GA_DEFAULT_EA_NAME_LEN * GA_DEFAULT_EA_NUM), + GA_DEFAULT_EA_VAL_LEN * GA_DEFAULT_EA_NUM), -1, 0); req_capsule_set_size(&req->rq_pill, &RMF_EADATA, RCL_SERVER,