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.10.5-RC1~4 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F01%2F32901%2F2;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. Lustre-change: https://review.whamcloud.com/32739 Lustre-commit: dea1cde92014545d97406bf8adba20840abdb1a9 Signed-off-by: John L. Hammond Change-Id: Ibbed6aba6718f50eed1a08d506d526b1e0e042c8 Reviewed-by: Andreas Dilger Reviewed-by: Andrew Perepechko Reviewed-by: James Simmons Tested-by: Andreas Dilger Reviewed-by: Oleg Drokin Signed-off-by: Minh Diep Reviewed-on: https://review.whamcloud.com/32901 Tested-by: Jenkins Tested-by: Maloo --- diff --git a/lustre/mdc/mdc_locks.c b/lustre/mdc/mdc_locks.c index 2810f9f..4a532f0 100644 --- a/lustre/mdc/mdc_locks.c +++ b/lustre/mdc/mdc_locks.c @@ -384,7 +384,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,